Action Script Question:

Download Job Interview Questions and Answers PDF

Tell me what are the different ways in which the variables can be assigned?

Action Script Interview Question
Action Script Interview Question

Answer:

- 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>;

Download Action Script Interview Questions And Answers PDF

Previous QuestionNext Question
Can you explain what are the changes presented by ActionScript?Do you know what does reference means in ActionScript?