Guest User

Untitled

a guest
Oct 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // Object Usage and Properties
  2. false.toString() // 'false'
  3. [1, 2, 3].toString(); // '1,2,3'
  4. function Foo(){}
  5. Foo.bar = 1;
  6. Foo.bar; // 1
  7. (2).toString();
  8.  
  9. // The for in Loop, prints both bar and moo
  10. Object.prototype.bar = 1;
  11. var foo = {moo: 2};
  12. for(var i in foo) {console.log(i);}
Add Comment
Please, Sign In to add comment