Declares a variable.
var variable1 [ = value1 ] [, variable2 [ = value2], ...]
The names of the variables being declared.
The initial value assigned to the variable.
Use the var statement to declare variables. These variables can be assigned values at declaration or later in your script.
The following example illustrates the use of the var statement.
var index; var name = "Thomas Jefferson"; var answer = 42, counter, numpages = 10;
Version 1
Download Home Copyright © 2001-2024 adersοft