Different between ES6 and ES5 standards
Loading
Different between ES6 and ES5 standards
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rijwan AnsariPosted Sep 26, 2022, 1:25 PM
ECMAScript 5 (ES5P) :
ES5 is also known as ECMAScript 2009 as it is released in 2009. It is a function contractors focus on how the objects are instantiated. For ES5 you have to write function keyword and return, to be used to define the function, like normal general JavaScript language.
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.
https://www.geeksforgeeks.org/difference-between-es5-and-es6/
Satya KarkiPosted Sep 26, 2022, 1:28 PM
Hi
Check this for ES5 vs ES6 with examples
https://medium.com/recraftrelic/es5-vs-es6-with-example-code-9901fa0136fc
Sachin SinghPosted Sep 26, 2022, 12:34 PM
You can find the difference here
https://www.javatpoint.com/es5-vs-es6#:~:text=Difference%20between%20ES5%20and%20ES6&text=ES6%20is%20the%20sixth%20edition,specification%20defined%20by%20ECMA%20International).&text=It%20was%20introduced%20in%202009,It%20was%20introduced%20in%202015.&text=ES5%20supports%20primitive%20data%20types,boolean%2C%20null%2C%20and%20undefined.