I love javascript. But it has some annoying quirks. Most recently:
We created an array, and then set it's third element, without having set it's first two elements. JavaScript is fine with this, and creates the first two elements for us.
And the array appears normal.
Except when we try to iterate over it using the new forEach method, which doesn't show the first two elements.
No comments:
Post a Comment