Advertisement
dubbe

Untitled

Mar 5th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Foo(bar) {
  2.     this.doodad = function() {
  3.         console.log(bar)
  4.     }
  5. }
  6.  
  7. a=new Foo({foo: 'bar'});
  8. b=new Foo({foo: 'baz'});
  9. b.doodad();
  10. a.doodad();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement