Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var s = "string";
- String.prototype.testEqual = function(){ return this == s; };
- String.prototype.testStrict = function(){ return this === s; };
- s.testEqual(); // true
- s.testStrict(); // false
- s = new String(s);
- s.testEqual(); // true
- s.testStrict(); // true
Add Comment
Please, Sign In to add comment