Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Foo(){
- this.bar = 'foobar';
- }
- Foo.prototype.build = function(){
- }
- function Bar(){
- Foo.call(this);
- }
- Bar.prototype = Object.create(Foo.prototype);
- Bar.prototype.constructor = Foo;
- new Bar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement