ES6 (ECMAScript 2015)
let and const: New ways to declare variables with block scope
1) Arrow functions:
A new syntax for defining functions with shorter syntax, implicit returns, and lexical this.
2) Template literals:
A new syntax for creating string literals with interpolation and multiline support.
3) Destructuring assignment:
A new syntax for extracting values from objects
and arrays into variables.
4) Rest and spread operators:
New syntax for working with function arguments and arrays.
5) Default function parameters:
A new way to define default values for function parameters.
A new syntax for defining classes
, which provide a more concise and familiar syntax for creating objects and inheritance.
A new syntax for defining modules
, which provide a better way to organize and reuse code.
A new way to work with asynchronous code that simplifies error handling and chaining of operations.
9) Symbol type:
A new primitive type that provides a way to create unique values.
10) Iterators and generators:
New ways to work with collections of data, including custom iteration behavior.
Please check this link
for all the ES6 features in detail