Update article.md
Spacing.
This commit is contained in:
parent
c089ff7cf4
commit
0de525c3b7
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ let rabbit = {
|
||||||
|
|
||||||
for(let prop in rabbit) {
|
for(let prop in rabbit) {
|
||||||
let isOwn = rabbit.hasOwnProperty(prop);
|
let isOwn = rabbit.hasOwnProperty(prop);
|
||||||
alert(`${prop}: ${isOwn}`); // jumps:true, then eats:false
|
alert(`${prop}: ${isOwn}`); // jumps: true, then eats: false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
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:
|
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue