Language documentation Contents | Index

Declaring a variable, Data types


Description:
    Variables are declared using the "var" keyword. All non-initialized variables will be automatically initialized to the number data type and will have the null value (0).

Example:
	var x;
	var y,z;
	var a,b="test",c=0,d=new SomeClass();
	var arr=[1,2,3];
	var[] arr;



Documented by Eduard Suica, generation time: Fri Jan 21 18:06:24 2011 GMT(c)2011 RadGs Software