Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Base() { }
- var base = new Base();
- function One() { }; One.prototype = base;
- function Two() {} ; Two.prototype = base;
- var one = new One();
- var two = new Two();
- one instanceof Two; //true
- two instanceof One; // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement