ECMAScript 2015, also known as ES6, was the second major update to JavaScript.
This chapter covers the key features introduced in ES6.
New Features in ES6
- The let keyword
- The const keyword
- Arrow Functions
- The {a,b} = Operator
- The [a,b] = Operator
- The … Operator
- For/of
- Map Objects
- Set Objects
- Classes
- Promises
- Symbol
- Default Parameters
- Function Rest Parameter
- String.includes()
- String.startsWith()
- String.endsWith()
- Array entries()
- Array.from()
- Array keys()
- Array find()
- Array findIndex()
- Math.trunc
- Math.sign
- Math.cbrt
- Math.log2
- Math.log10
- Number.EPSILON
- Number.MIN_SAFE_INTEGER
- Number.MAX_SAFE_INTEGER
- Number.isInteger()
- Number.isSafeInteger()
- New Global Methods
- JavaScript Modules
Browser Support for ES6 (2015)
ES6 has been fully supported in all modern browsers since June 2017.
