Skip to content

Commit 028b408

Browse files
authored
Update article.md
Updated based on comments
1 parent c4914ae commit 028b408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/06-instanceof/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The algorithm of `obj instanceof Class` works roughly as follows:
6868
alert(obj instanceof Animal); // true: Animal[Symbol.hasInstance](obj) is called
6969
```
7070

71-
2. Most classes do not have `Symbol.hasInstance`. In that case, the standard logic is used: `obj instanceOf Class` checks whether `Class.prototype` equals to any prototype in the `obj` prototype chain.
71+
2. Most classes do not have `Symbol.hasInstance`. In that case, the standard logic is used: `obj instanceOf Class` checks whether `Class.prototype` is equal to one of the prototypes in the `obj` prototype chain.
7272

7373
In other words, compare one after another:
7474
```js

0 commit comments

Comments
 (0)