Merge pull request #2024 from lumosmind/patch-47

One line of code creates a lot of confusing
This commit is contained in:
Ilya Kantor 2020-09-05 18:06:54 +03:00 committed by GitHub
commit edc6126980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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