Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 7th, 2011  |  syntax: JavaScript  |  size: 0.14 KB  |  views: 43  |  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. function Foo()
  2. {
  3.     this.z = 1;
  4.     this.out = function(x, y) { return x + y + this.z }
  5. }
  6.  
  7. var bar = new Foo().out(2,3); // returns 6