News for hackers. Stuff that matters.
Re:A Reintroduction to JavaScript by bpierre on Monday February 03, 2014 @07:39AM (#7170311)
It must be for the compatibility, Array.prototype.push() has been added to IE 5.5:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:A Reintroduction to JavaScript by cstuder on Monday February 03, 2014 @07:43AM (#7170321)
Thirteen years ago... I would argue that you could use a.push() safely now.

So, why should a[a.length] be safer?

Re:A Reintroduction to JavaScript by coldtea on Monday February 03, 2014 @10:52AM (#7171230)
He said it already, JUST for the compatibility. No other reason compared to push nowadays.