obj.toString === obj.__proto__.toString

Missing .
This commit is contained in:
zhewang2 2017-08-03 13:04:41 -04:00 committed by GitHub
parent 9bba300d69
commit 3204e135b1

View file

@ -33,7 +33,7 @@ We can check it like this:
let obj = {}; let obj = {};
alert(obj.__proto__ === Object.prototype); // true alert(obj.__proto__ === Object.prototype); // true
// obj.toString === obj.__proto__toString == Object.prototype.toString // obj.toString === obj.__proto__.toString == Object.prototype.toString
``` ```
Please note that there is no additional `[[Prototype]]` in the chain above `Object.prototype`: Please note that there is no additional `[[Prototype]]` in the chain above `Object.prototype`: