JScript Version Information
JScript is a language that continues to evolve, and each new version of the language introduces new features. To take advantage of all the features provided by a particular version of the language, a compatible version of compiler or script engine is required.
Versions and Host Applications
The version of JScript that is available to you depends on whether the JScript code will run on the client in a Web browser or on the server by using the .NET Framework. If the code is contained in a Visual Studio application or is within a command-line application, it is considered server-side code.
JScript (Windows Scripting)
When you write client-side scripts that run in the script engine of a browser, the running script detects the engine version. Once the engine version is known, a script written in a compatible version of JScript can be run. For more information, see Detecting Browser Capabilities.
The following table lists the version of Microsoft JScript implemented by host applications.
Host application |
JScript version |
---|---|
Internet Explorer 3.0 |
1.0 |
Internet Information Server 3.0 |
2.0 |
Internet Explorer 4.0 |
3.0 |
Internet Information Server 4.0 |
3.0 |
Visual Studio 6.0 |
4.0 |
Internet Explorer 5.0 |
5.0 |
Internet Explorer 5.01 |
5.1 |
Windows 2000 |
5.1 |
Internet Explorer 5.5 |
5.5 |
Internet Explorer 6.0 |
5.6 |
Windows XP (through SP2) |
5.6 |
Internet Explorer 7.0 |
5.7 |
Windows XP SP3 |
5.7 |
Windows Vista |
5.7 |
Internet Explorer 8.0 |
5.8 |
For more information about JScript client-side scripts, see JScript (Windows Script Technologies).
JScript in Visual Studio
When you write code for a server-side application or a command-line application, the version of JScript that is available to you depends on the .NET Framework version that you are targeting. The following table lists the version of Microsoft JScript that is implemented by each version of the .NET Framework.
Visual Studio version |
.NET Framework version |
JScript version |
---|---|---|
Visual Studio .NET 2002 |
.NET Framework 1.0 |
JScript 7.0 (JScript .NET 2002) |
Visual Studio .NET 2003 |
.NET Framework 1.1 |
JScript 7.0 (JScript .NET 2003) |
Visual Studio 2005 |
.NET Framework 2.0 |
JScript 8.0 |
Visual Studio 2008 |
.NET Framework 3.5 |
JScript 8.0 |
Note
The version number reported by the ScriptEngineMajorVersion function and the @_jscript_version conditional compilation variable is always numeric. This allows numeric comparisons to be made with the version number. For version .NET applications, the version reported is 7.x, not .NET. Engines that report a version number of 7.x or higher can compile JScript 8.0 code.
Language Elements
The following table lists JScript language features and the JScript version in which they were first introduced. The .NET 7.0 and 8.0 column applies to JScript .NET 2002, JScript .NET 2003, and JScript 8.0, all of which shipped with the same language features.
JScript 5.8 introduced these language elements that are not present in JScript versions 7.0 and 8.0: JSON object, JSON.parse method, JSON.stringify method, toJSON method, defineProperty method, getOwnPropertyDescriptor method.
Language element |
1.0 |
2.0 |
3.0 |
4.0 |
5.0 |
5.5 |
.NET 7.0 and 8.0 |
---|---|---|---|---|---|---|---|
|
|
|
|
|
x |
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|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|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
See Also
Concepts
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
March 2009 |
Updated and reformatted the version tables. |
Information enhancement. |