Skip to content

Commit edc6126

Browse files
authored
Merge pull request #2024 from lumosmind/patch-47
One line of code creates a lot of confusing
2 parents ba5424a + 8f3831b commit edc6126

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

1-js/08-prototypes/03-native-prototypes/article.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ We can check it like this:
3333
let obj = {};
3434

3535
alert(obj.__proto__ === Object.prototype); // true
36-
// obj.toString === obj.__proto__.toString == Object.prototype.toString
36+
37+
alert(obj.toString === obj.__proto__.toString); //true
38+
alert(obj.toString === Object.prototype.toString); //true
3739
```
3840

3941
Please note that there is no more `[[Prototype]]` in the chain above `Object.prototype`:

0 commit comments

Comments
 (0)