How to check the JavaScript version

JavaScript is a client-side programming language. This means it is running on the user’s browser. It is very well supported and interpreted by the most used browsers like Chrome, Firefox, Safari, Internet Explorer, Edge, Opera, and many more.

The Brendan Eich initial programming language was first named Mocha and then changed the name to LiveScript, and finally JavaScript. Several editions of the language standard have been published since then.

What is ECMAScript?

The name ECMAScript was a compromise between the organizations involved in standardizing the language. There are nine editions of ECMAScript published. The last ECMA version was published in June 2018.

Javascript and others like JScript and ActionScript are all different implementations of ECMAScript. If you want to further read about differences between them there is an interesting debate at the StackOverflow website here: https://stackoverflow.com/questions/912479/what-is-the-difference-between-javascript-and-ecmascript/33748400#33748400

Ecma script descendens

How many Javascript versions are available

For now, there are 12 different versions of Javascript. The Javascript version 1.4 was intended to work only on Netscape so it is not included in the table below.

JavaScript VersionReleasedECMA EquivalentFirefoxIEChrome
1.0March 1996  3.0 
1.1August 1996    
1.2June 1997    
1.3October 1998ECMAScript 1 & 2 4.0 
1.5November 2000ECMAScript 31.05.5-8.01.0-10.0.666
1.6November 2005ECMAScript for XML1.5  
1.7October 2006 2.0  
1.8June 2008 3.0  
1.8.1June 2009 3.5  
1.8.2January 2010 3.6  
1.8.5March 2011ECMAScript 549, 1013.0+

How to check Javascript version in the browser

To get the Javascript version that your browser is using, just set a variable and then try to overwrite it in the next script where you set a language-specific version. Here is how you do it.

This will throw an alert with the version your browser is using. You can also check it here on CodePen: https://codepen.io/catalin586/pen/jebKEM