Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copy this code block and run it in your console
- // (Firebug or WebKit Javascript Console)
- console.log(blanky); // `object definition`
- console.log(typeof blanky); // object
- console.log(blanky.__proto__); // object
- console.log(typeof blanky.__proto__); // object
- console.log(blanky.constructor); // SafetyBlanket()
- console.log(typeof blanky.constructor); // function
- console.log(blanky.constructor.prototype); // object{}
- console.log(typeof blanky.constructor.prototype); // object
- // Notice it always comes back to an object
- // ------------------------
- console.log(blanky.isObject); // true
- console.log(typeof blanky.isObject); // boolean
- console.log(blanky.isObject.__proto__); // object
- console.log(typeof blanky.isObject.__proto__); // object
- console.log(blanky.isObject.constructor); // Boolean()
- console.log(typeof blanky.isObject.constructor); // function
- console.log(blanky.isObject.constructor.prototype); // false {}
- console.log(typeof blanky.isObject.constructor.prototype); // object
- // Again, it always comes back to an object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement