What is the end of prototype chain in javascript — null or Object.prototype?
问题 I've been reading about prototype chain in JavaScript and came to two slightly different definitions. It is said that every object in JavaScript has a prototype and that prototype in turn has another prototype. The top prototype(Grand) may also have prototype and the chain can continue. Now the chain will stop at one last object. JavaScript the Good parts says the chain terminates at Object.prototype and MDN says null is the final link where the chain terminates. Javascript: The Good Parts