Promotic
WikipediaLinkedInYoutubeTwitterFacebook

var - statement of language JavaScript

Description:
Declares variables.
Syntax:

var name [, ...];

var name [ = value [, ...]];

 
name Name of the variable
Note:
Variables declared with var in the procedure are available only within the procedure.
 
For similar purpose in the VBScript language is used the statement Dim and Set.
Example:
Select and copy to clipboard

//Declare two variables
var nVar, nNum;

//Creation of two variables with assigned values
var nVar = 2;
var nNum = "text";
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice