Different between ES6 and ES5 standards
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rijwan AnsariRank #82 · 24.2K reputationPosted Sep 26, 2022, 9:25 AM EDT
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/
Sachin SinghRank #66 · 26.2K reputationPosted Sep 26, 2022, 8:34 AM EDT
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.
Satya KarkiRank #78 · 24.6K reputationPosted Sep 26, 2022, 9:28 AM EDT
Hi
Check this for ES5 vs ES6 with examples
https://medium.com/recraftrelic/es5-vs-es6-with-example-code-9901fa0136fc