Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. // Copy this code block and run it in your console
  2. // (Firebug or WebKit Javascript Console)
  3. console.log(blanky); // `object definition`
  4. console.log(typeof blanky); // object
  5. console.log(blanky.__proto__); // object
  6. console.log(typeof blanky.__proto__); // object
  7. console.log(blanky.constructor); // SafetyBlanket()
  8. console.log(typeof blanky.constructor); // function
  9. console.log(blanky.constructor.prototype); // object{}
  10. console.log(typeof blanky.constructor.prototype); // object
  11. // Notice it always comes back to an object
  12. // ------------------------
  13. console.log(blanky.isObject); // true
  14. console.log(typeof blanky.isObject); // boolean
  15. console.log(blanky.isObject.__proto__); // object
  16. console.log(typeof blanky.isObject.__proto__); // object
  17. console.log(blanky.isObject.constructor); // Boolean()
  18. console.log(typeof blanky.isObject.constructor); // function
  19. console.log(blanky.isObject.constructor.prototype); // false {}
  20. console.log(typeof blanky.isObject.constructor.prototype); // object
  21. // Again, it always comes back to an object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement