Object

Object Literal

console.log(typeof {}); // object
console.log(Object.prototype.toString.call({})); // [object Object]

console.log(Object.getPrototypeOf({}) === Object.prototype); // true
console.log({}.constructor === Object); // true
console.log({} instanceof Object); // true

console.log({}.prototype); // undefined

Untitled

Properties

[[Prototype]]  Properties

Object Instance

console.log(typeof new Object()); // object
console.log(Object.prototype.toString.call(new Object())); // [object Object]

console.log(Object.getPrototypeOf(new Object()) === Object.prototype); // true
console.log(new Object().constructor === Object); // true
console.log(new Object() instanceof Object); // true

console.log(new Object().prototype); // undefined

Untitled

Property Shadowing