Update solution.md

"avoid" rather than "evade".
This commit is contained in:
paroche 2019-09-13 17:04:35 -06:00 committed by GitHub
parent f97b2fd1e2
commit 51d2d3e5fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ alert( lazy.stomach ); // <nothing>
Now all works fine, because `this.stomach=` does not perform a lookup of `stomach`. The value is written directly into `this` object. Now all works fine, because `this.stomach=` does not perform a lookup of `stomach`. The value is written directly into `this` object.
Also we can totally evade the problem by making sure that each hamster has their own stomach: Also we can totally avoid the problem by making sure that each hamster has their own stomach:
```js run ```js run
let hamster = { let hamster = {