Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 30, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/b0dfba3a00557cc2c169bdc604eb916b to your computer and use it in GitHub Desktop.
Save codecademydev/b0dfba3a00557cc2c169bdc604eb916b to your computer and use it in GitHub Desktop.
Codecademy export
// what is this "Object.prototype" anyway...?
var prototypeType = "hi";
console.log(prototypeType);
// now let's examine it!
var hasOwn = Object.prototype.hasOwnProperty("hasOwnProperty");
console.log(hasOwn);
@bayoishola20
Copy link

2nd line.

You want to know what "typeof". Do,

var prototypeType = typeof Object.prototype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment