ECMAScript defines the core part of the language. But it is not host-dependent. It does not know anything about HTML or browsers.
2. Versions of ECMAScript
The first version is released in 1997.
- Version 1 : 1997
- Version 2 : 1998
- Version 3 : 1999
- Version 4 : Abandoned
- Version 5 : 2009
- Version 5.1 : 2011
- Version 6 (ES6): 2015
- Version 7: 2016
- Version 8: 2017
The third version had been used widely until ECMAScript5 was released.
ECMA3 introduced the following features:
- Regular expressions
- Exception handling (try/catch)
- Tighter definition of errors
- Formatting for numeric output
The version 5 of ECMAScript adds
- Strict mode
- “JSON” object : JSON.parse() / JSON.stringify()
- “Object” object : reflection methods are added
- Getters and Setters
5. ECMAScript2015 (ES6)
This version was initially known as ES6 (still widely used) and later renamed to ECMAScript2015. This introduced significant syntax changes.
- Classes and Modules
- Iterators and for/of loops
- Arrow functions
- Collections (maps, sets and weak maps)
- Spread operators
- Exponential Operator (**)
8. Browser Support for ECMAScript
Please refer to the following sites