Your right that x was unused, I've removed that. That's true, the reason I posted this is because arrays are slightly different from object bracket access.
but yes it's b
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think it would be c but lets make it a little more interesting
Array indexe of 1 auto populates an array of length 2, does the string "1" go in the index or the object key value store?
Did you mean to leave
xunused, or is that a mistake in your example?Either way, after line 3 the array
[undefined, "b"]so whether you index it with["1"]or with[x], the result is going to bebYour right that x was unused, I've removed that. That's true, the reason I posted this is because arrays are slightly different from object bracket access.
but yes it's b