Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- real = new String("foo");
- fake = "foo";
- real.newprop = 1;
- real.newprop // => 1
- fake.newprop = 1; // BAD: silently fails since 'fake' isn't true object
- fake.newprop // => undefined
Advertisement
Add Comment
Please, Sign In to add comment