SHARE
TWEET

Untitled

a guest Feb 27th, 2012 8 Never
  1. // declare (use upper camel case for classes as a convention)
  2. function MyClass() {
  3.  
  4. }
  5. // invoke new instance of MyClass
  6. alert(new MyClass()); // alerts "[object Object]"
RAW Paste Data
Top