Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Foo(){
  2.   this.bar = 'foobar';
  3. }
  4. Foo.prototype.build = function(){
  5. }
  6.  
  7.  
  8. function Bar(){
  9.   Foo.call(this);
  10.  
  11. }
  12. Bar.prototype = Object.create(Foo.prototype);
  13. Bar.prototype.constructor = Foo;
  14.  
  15.  
  16. new Bar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement