April 27, 2002 - JScript .NET's "Hello World!" | WebReference

April 27, 2002 - JScript .NET's "Hello World!"

Yehuda Shiran April 27, 2002
JScript .NET's "Hello World!"
Tips: April 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

Your JScript .NET version of Hello World! should include a single line:

  print ("Hello World!");
Save this file as hello.js. Enter a Command Prompt window and type at the command line:

  jsc hello.js
An executable file called hello.exe will be generated. Run the program by just typing the name of the executable (extension not needed) at the command line:

You will get "Hello World!" in your Command Prompt window.

To learn more on JScript .NET, go to Column 107, JScript .NET, Part I: The Mechanics.