Factsheet
Hello. I am learning about es5 and es6 in Javascript. I think I understood a bit es6 but es5 is harder one. I am little confused to as a lot of tutorials says that those are classes but I found one that says that the classes explanation is bad and in js there are no classes so its easier to understand it on objects and methods.
It's also very abstract for me and I dont know where should I use es5 and where es6 in real life.
Please help!
Referring to ECMAScript 5 compatibility table page, Firefox 4 - 6 and Chrome 13 - 14 are the most compatible browsers.
The Mozilla JavaScript Reference might be the closest. See its entry for ECMAScript5 support for details.
Update (2011-08-05)
It appears that ES5 is backward compatible with ES3 (1, 2). The only way to break the compatibility is to use "use strict" to enable a subset of ES5 deemed as less error prone.
The new (2011) edition of "Javascript: The Definitive Guide" covers ECMAScript 5 functions thoroughly, and shows how to implement ECMAScript 3 equivalents in many cases :-)
