4DIS - JavascriptTutorial - Variables

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 19: Line 19:
 
// examples...
 
// examples...
  
var newVar : String = "This is a string";
+
var newVarA;
 +
var newVarB = "This is a string";
 +
var newVarC : String;
 +
var newVarD : String = "This is a String";
  
 
</javascript>
 
</javascript>

Revision as of 08:40, 30 October 2011

Javascript Variables

4DIS - JavascriptTutorial - Back


<javascript>

/* create new variables...

var ...name...; var ...name... = ...value...; var ...name... : ...type...; var ...name... : ...type... = ...value...;

*/

// examples...

var newVarA; var newVarB = "This is a string"; var newVarC : String; var newVarD : String = "This is a String";

</javascript>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox