Special Operators in ActionScript

Notes:

Special Operators in ActionScript Programming Language:

typeof: typeof operator returns the type of a given operand (data)
Ex:
trace(typeof 5); // number
trace(typeof "Action Script"); // string
trace(typeof true); // boolean
trace(typeof undefined); // undefined
trace(typeof null); // object

comma: comma operator returns the RHS operand value
Ex:
var c:int = (2,2) + (3,5);// same as var c:int = 2+5 ;
trace(c);//7

new: new operator is used to create new instance of an object
Ex:
var stud1:Object = new Object();
stud1.name="Ramesh";
stud1.rollNum = 1;
trace(stud1.rollNum," : ",stud1.name);//1:Ramesh

delete: delete operator is used to delete a property of an object
Ex:
delete stud1.rollNum;
trace(stud1.rollNum," : ",stud1.name);//undefined:Ramesh