This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.17 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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]"
clone this paste RAW Paste Data