#How is this even possible?

3 messages · Page 1 of 1 (latest)

timid nova

So apparently we can have a float as a key and it's value as anything but that's not even a object which is inside the array

burnt lilyBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
spiral wagon

Because arrays in js are just objects with numbers as keys.