4DIS - JavascriptTutorial - Classes

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
Line 14: Line 14:
 
}
 
}
  
</javascript>
 
  
 
<javascript>
 
  
 
class MyClass
 
class MyClass
 
{
 
{
     // ...
+
     var a : int = 5;
 +
    var b : float = 2.5;
 
}
 
}
  
 
</javascript>
 
</javascript>

Revision as of 08:53, 30 October 2011

Javascript Classes

4DIS - JavascriptTutorial - Back


Creating own classes :

<javascript>

class MyClass {

   // ...

}


class MyClass {

   var a : int = 5;
   var b : float = 2.5;

}

</javascript>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox