Merge pull request #234 from AndreyKalashnik/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2017-10-07 17:05:04 +03:00 committed by GitHub
commit ec665a7005

View file

@ -72,7 +72,7 @@ setTimeout(() => user.sayHi(), 1000); // Hello, John!
Looks fine, but a slight vulnerability appears in our code structure. Looks fine, but a slight vulnerability appears in our code structure.
What if before `setTimeout` triggers (there's one second delay!) `user` changes value? Then, suddenly, the it will call the wrong object! What if before `setTimeout` triggers (there's one second delay!) `user` changes value? Then, suddenly, it will call the wrong object!
```js run ```js run