Difference between ES5 and ES6
1. ECMAScript 5 (ES5P) :
2. ECMAScript 6 (ES6) :
ES6 is also known as ECMAScript 2015 as it is released in 2015. Its class allows the developers to instantiate an object using the new operator, using an arrow function, in case it doesn’t need to use function keyword to define the function, also return keyword can be avoided to fetch the computer value.
Difference between ES5 and ES6 :