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: Thu Oct 15 20:02:09 2009 GMT(c)2009 RadGs Software