Variables are defined by simply assigning a value to them for the first time. Using the default settings, vari­ables do not need to be declared before using them. However, you can use the var statement to explicitly declare a variable. Further, you can require variable declarations by using the strictvars statement.

You can create a variable by assigning a value to it for the first time. For example:

i = 0     // creates new variable i with value 0

If the strictvars mode is on, then the above statement will cause an error because the variable is used before being declared.

You can declare a variable by using the var statement. For example:

var i     // declares new variable i

Variable names are not case sensitive. Variable names must begin with a letter or underscore, not a digit.

Variables act like strings most of the time. There are no types like in C, and no need to declare variables. This makes working with variables very easy. There is no need to do conversions or casts. In addition, there is no need for string memory management.