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.
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