NET compiler is a very early version, and many things do not work yet. Using the jsc compiler. Microsoft Corp 2000. All rights reserved. NET uses a colon to specify a type.
Types can appear on variable declarations and in function definitions.
The default type is Object , which can hold any of the other types. They map to the corresponding .NET types. JScript also has Array , Function , RegExp , and Error types that have no direct .NET equivalents. You can also use any .NET type by importing the appropriate namespace. When using the command-line compiler, you need to use the import statement.