Difference between ES5 and ES6

1) ES5:- It is the 5th edition of Echma Script.
ES6:- It is the 6th edition of Echma Script.

2) Datatypes:- ES5:- It is used number,string,null,undefined,boolean
ES6:- It is added aditional feature “symbol” data type

3) Variable declaration:- ES5:- it is used only var keyword.
ES6:- it is introduced new keywords let and const.

4) Arrow function:- ES6:- it is introduced Arrow function so there is no need function write.

5) loop:- ES5:- It has for loop.
ES6:- It is introduced new loop “for of”