ECMAScript is a specification for scripting languages such as JavaScript.Suppose if a browser supports specifications of ECMAScript then it will execute code written in any ECMAScript compatible language.In other words ECMAScript compatible scripting language guarantees that the code will execute in any ECMAScript compatible browser.
If we write code in JavaScript then we are sure that it will execute in every browser .This is because all the browsers support ECMAScript.
JavaScript is one of the languages based on ECMAScript. There are other languages based on ECMAScript such as ActionScript which is used in Adobe Flash.So JavaScript is just one of the languages supporting ECMAScript ,though it is one of the most popular languages supporting ECMAScript features.
Apart from the features of the ECMAScript standard,JavaScript implements few other features as well.
One of the most widely used version of ECMAScript is ECMA 5.ECMA 5 is supported in most of the browsers of today.
ECMAScript 2015 or ECMAScript 6 is the latest version of ECMAScript.It helps in writing complex applications .It includes features such as classes ,modules and type arrays.Next version of JavaScript supports ECMAScript 6.
Not all the browsers supports ECMAScript 6.In such cases we can Transpile the ECMAScript 6 into ECMAScript 5.
![Follow us on Facebook Facebook](https://codecompiled.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/facebook.png)
![Follow us on Twitter twitter](https://codecompiled.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/twitter.png)
Leave a Reply