In JScript 10.0, a colon specifies the type in a variable declaration or function definition. The default type is Object, which can hold any of the other types. For more information, see JScript Variables and Constants and JScript Functions.
JScript 10.0 has several built-in data types (such as int, long, double, String, Object, and Number). For more information, see JScript Data Types. You can also use any .NET Framework data type after importing the appropriate namespace. For more information, see .NET Framework Class Library.
How to access a namespace
A namespace is accessed using either the import statement (when using the command-line compiler) or the @import directive (when using ASP.NET). For more information, see import Statement. The /autoref option (which is on by default) automatically attempts to reference the assemblies that correspond to namespaces used in a JScript .NET program. For more information, see /autoref.
How to create typed (native) arrays
A typed array data type is declared by placing square brackets () after the data type name. You can still use JScript array objects, objects created with the Array constructor. For more information, see Arrays Overview.
How to create a class
In JScript 10.0, you can define your own classes. Classes can include methods, fields, properties, static initializers, and sub-classes. You can write a completely new class, or you can inherit from an existing class or interface. Modifiers control the visibility of the class members, how members are inherited, and the overall behavior of a class. Custom attributes can also be used. For more information, see Class-based Objects and JScript Modifiers.