Skip to content

Commit 0de525c

Browse files
authored
Update article.md
Spacing.
1 parent c089ff7 commit 0de525c

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/06-prototype-methods

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/06-prototype-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ let rabbit = {
222222

223223
for(let prop in rabbit) {
224224
let isOwn = rabbit.hasOwnProperty(prop);
225-
alert(`${prop}: ${isOwn}`); // jumps:true, then eats:false
225+
alert(`${prop}: ${isOwn}`); // jumps: true, then eats: false
226226
}
227227
```
228228
Here we have the following inheritance chain: `rabbit`, then `animal`, then `Object.prototype` (because `animal` is a literal object `{...}`, so it's by default), and then `null` above it:

0 commit comments

Comments
 (0)