JavaScript Tutorial (ECMAScript 5)

I heard that ECMAScript 5 is now supported by most recent browsers. Are there any good tutorials? I tried to search for myself, but found nothing. Is there any ES5 documentation there? I basically want to know what has been discounted in the new standard. If I avoid this, I can feel at home when I upgrade to ES5 and I won't miss anything worthless.

+6
source share
3 answers

The new (2011) edition of "Javascript: The Definitive Guide" fully covers the functions of ECMAScript 5 and shows how in many cases to implement the equivalents of ECMAScript 3 :-)

+6
source

Referring to the ECMAScript 5 compatibility table , Firefox 4-6 and Chrome 13-14 are the most compatible browsers.

The JavaScript reference for Mozilla may be the closest. See C for ECMAScript5 support for more details.

Update (2011-08-05)

It looks like ES5 is backward compatible with ES3 ( 1 , 2 ). The only way to break compatibility is to use "use strict" to enable a subset of ES5 that is considered less error prone.

+9
source

Functions that were deprecated are functions that are disabled when the "use strict" mode is triggered (a pretty bad way to do this, IMO, because it requires them to come up with new terminology for the next version ... but I digress).

I found the Resig article about this quite useful, although I haven't confirmed anything he says here: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

+2
source

Source: https://habr.com/ru/post/894335/


All Articles