Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Bar = function () {};
- var bar1 = new Bar();
- var bar2 = new Bar();
- bar1.__proto__ === bar2.__proto__;
- var Foo = function () {};
- Bar.prototype = new Foo();
- bar1.__proto__ === bar2.__proto__;
- var bar3 = new Bar();
- var bar4 = new Bar();
- bar3.__proto__ === bar4.__proto__;
Add Comment
Please, Sign In to add comment