JS

CHECKING THE JAVASCRIPT VERSION MAKES NO SENSE

1) ECMASCRIPT ECMA International handles recommended standards for Javascript - ECMAScript 1st Edition (EC1), ECMAScript 2nd Edition (EC2), etc...

2) JAVASCRIPT ENGINES Every company has its own JS engine and version - Mozilla Spidermonkey, Safari Nitro, Chrome V8, etc...

3) DEFUNCT JS VERSION Obsolete JS versions from Netscape and MS JScript.

JAVASCRIPT VERSIONS

01

1) There is no way to determine the "JS version" reliably.

VERSION CHECK MAKES NO SENSE

02

2) Which version? ECMA, browser engine, defunct version?

3) Not indicative of anything - Features are different across engines.

4) Version check pretty much serves no purpose in applications.

Don't do version checks, check if the required feature is available instead.

For example, check if the Geolocation API is available if using GPS for project.

USE FEATURE DETECTION

03