JScript is a scripted programming language from Microsoft , which is an implementation of the ECMAScript standard . JScript syntax is very similar to Netscape's JavaScript , but, in addition to adding client scripts to web pages (which was the only JavaScript function before the Mozilla project appeared), JScript can also be used for other purposes, for example:
- automate the administration of Windows systems;
- creating ASP pages.
JScript | |
---|---|
Semantics | imperative |
Language class | |
Execution type | screenwriting |
Appeared in | |
Developer | |
Release | |
Type system | lax, dynamic |
Basic implementations: | ASP , Windows Script Host |
Dialects | JScript.NET |
Experienced influence | |
OS | |
Site |
Here is an example of a small JScript program that (when launched within the Windows Script Host ) brings up a dialog box (the characters after the signs //
are comments ):
// Declare a variable
var strMessage ;
// Assigning a variable to a value
strMessage = "Wikipedia is the free encyclopedia" ;
// Display message
WScript . Echo ( strMessage );
To run the script from the command line , the following command is usually used (in the case of a file named file.js
):
cscript file.js
JScript.NET
The JScript language has been further developed in the form of the JScript.NET language, which is oriented to work within the framework of the Microsoft .NET platform. Despite the similar syntax, this is a completely different language. It is more strictly typed and compiled, not interpreted.
Literature
- Justin Rogers. Programming on Microsoft Jscript. NET = Microsoft Jscript. NET Programming. - M .: “Williams” , 2002. - p. 352. - ISBN 0-672-32148-3 .
Links
- JScript (Windows Script Technologies) (rus.) - the official guide to JScript from Microsoft .
- Russian Manual and JScript Language Dictionary