Skip to content

Commit 3204e13

Browse files
author
zhewang2
authored
obj.toString === obj.__proto__.toString
Missing .
1 parent 9bba300 commit 3204e13

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/05-native-prototypes

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/05-native-prototypes/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ 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+
// obj.toString === obj.__proto__.toString == Object.prototype.toString
3737
```
3838

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

0 commit comments

Comments
 (0)