How to Check the JavaScript Version
This article discusses how to check the version of JavaScript.
The JavaScript Versions
A client-side programming language is JavaScript which indicates that it is active in the user’s browser. Well-known browsers, including Chrome, Firefox, Safari, Internet Explorer, Edge, Opera, and others, support and understand it correctly.
Before being renamed LiveScript, Brendan Eich’s original programming language was Mocha, and finally JavaScript. Since then, several editions of the linguistic standard have been issued.
ECMAScript is implemented in various ways, including JavaScript, JScript, and ActionScript.
The term ECMAScript was chosen to compromise the groups engaged in the language’s standardization. ECMAScript has been published in nine different editions. The most recent ECMA version was released in June of 2018.
There are currently 12 different JavaScript versions. The chart below does not contain JavaScript version 1.4 because it was designed to function solely with Netscape.
Check the JavaScript Version
Set a variable and try to overwrite it in the following script when you specify a language-specific version to retrieve the JavaScript version that your browser is using. Below is how you can perform this.
<script type="text/javascript">
var version = 1.0;
</script>
<script language="Javascript1.1"> version = 1.1; </script>
<script language="Javascript1.2"> version = 1.2; </script>
<script language="Javascript1.3"> version = 1.3; </script>
<script language="Javascript1.4"> version = 1.4; </script>
<script language="Javascript1.5"> version = 1.5; </script>
<script language="Javascript1.6"> version = 1.6; </script>
<script language="Javascript1.7"> version = 1.7; </script>
<script language="Javascript1.8"> version = 1.8; </script>
<script language="Javascript1.9"> version = 1.9; </script>
<script type="text/javascript">
alert(version);
</script>
Here, you can also run the code.
The above code will generate an alert with the browser version you’re using.
Output:
Shiv is a self-driven and passionate Machine learning Learner who is innovative in application design, development, testing, and deployment and provides program requirements into sustainable advanced technical solutions through JavaScript, Python, and other programs for continuous improvement of AI technologies.
LinkedIn