by babuskov · 12y ago · 0 comments
One question though, it says:
If you want to append an item to an array, the safest way to do it is like this:
a[a.length] = item; // same as a.push(item);
a.push() variant seems more elegant to me. Why is a[] variant "safer"?https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...