In this article
To declare a variable you must provide a name and specify the type of information the variable will carry. JScript's built-in types include Number, String, Object and Boolean.:
Type var, followed by a name for the variable, followed by a colon, and followed by a word that defines the type of value that would be stored in this memory space, for example:
var variableName : DataType;Example
var carModel : String;
var carColor : String;
var carHorsepower : int;