Is it possible to detect which javascript version the browser currently is using.
I want to know if it is Ecmascript 4/5/6
Is it possible by using the console??
Is it possible to detect which javascript version the browser currently is using.
I want to know if it is Ecmascript 4/5/6
Is it possible by using the console??
You can use the language attribute to detect the version of JavaScript.
<SCRIPT LANGUAGE="JavaScript1.1">
// do something on with browsers that use Javascript 1.1
</SCRIPT>
However for detecting what functions are available you are better to detect the individual features available, as browser don't always implement everything in the ECMAScript version.
Modenizer is a well used library for doing this.