| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ScriptEngineMajorVersion Function (JavaScript) | Microsoft Docs |
01/18/2017 |
windows-client-threshold |
|
language-reference |
|
|
|
3e251bce-1e14-4cb5-b79f-53845d1920fd |
10 |
mikejo5000 |
mikejo |
ghogen |
Gets the major version number of the scripting engine in use.
ScriptEngineMajorVersion()
The return value corresponds directly to the version information contained in the dynamic-link library (DLL) for the scripting language in use.
The following example illustrates the use of the ScriptEngineMajorVersion function:
if (window.ScriptEngineMajorVersion) {
console.log(window.ScriptEngine());
}
Output: <current major version>
[!INCLUDEjsv5]
ScriptEngine Function
ScriptEngineBuildVersion Function
ScriptEngineMinorVersion Function