What are the different ways in which the variables can be assigned? - ActionScript

What are the different ways in which the variables can be assigned?



- The primitive data types are used as a variable to pass it to the function and use it inside the code.

- XML is passed to the function to alter the variable passed in the function having the original variable.

- The data types can be assigned with values that has literals are as follows:

var item1:String="ABC";
var item2:Boolean=true;
var item3:Number=12;
var item4:Array=["a","b","c"];
var item5:Object={name:"Actionscript",version:"3.0"};
var item6:XML = <node><child/></node>;
Post your comment