Write a program that shows the usage of data types? - ActionScript

Write a program that shows the usage of data types?



- The program shows:
var yourVariableName:YourVariableType = new YourVariableType(Param1, Param2, ..., ParamN);

- This defines the variable type and constructs a new object with some parameter values.

- To create new empty object first a variable needs to be assigned and then the object needs to be created like:
var myObject:Object = new Object();

- The variables provide automatic assigning of the characters to the variable that is being created.
var myString:String = "Hello Wikipedia!";
var myNumber:Number = 5;
Post your comment