Implemented in | Navigator 2.0 |
var varname [= value] [..., varname [= value] ]
varname | Variable name. It can be any legal identifier. |
value | Initial value of the variable and can be any legal expression. |
Using var
outside a function is optional; you can declare a variable by simply assigning it a value. However, it is good style to use var
, and it is necessary in functions if a global variable of the same name exists.
var num_hits = 0, cust_no = 0
Last Updated: 10/31/97 12:29:59