Gets the major version number of the scripting engine in use.
Syntax
ScriptEngineMajorVersion()
Remarks
The return value corresponds directly to the version information contained in the dynamic-link library (DLL) for the scripting language in use.
Example
The following example illustrates the use of the ScriptEngineMajorVersion function:
if (window.ScriptEngineMajorVersion) {
console.log(window.ScriptEngine());
}
Output: <current major version>
Requirements
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1). See Version Information.
See Also
ScriptEngine Function
ScriptEngineBuildVersion Function
ScriptEngineMinorVersion Function

