Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Object Usage and Properties
- false.toString() // 'false'
- [1, 2, 3].toString(); // '1,2,3'
- function Foo(){}
- Foo.bar = 1;
- Foo.bar; // 1
- (2).toString();
- // The for in Loop, prints both bar and moo
- Object.prototype.bar = 1;
- var foo = {moo: 2};
- for(var i in foo) {console.log(i);}
Add Comment
Please, Sign In to add comment