Merge pull request #1554 from lumosmind/patch-19

code non-compatible with clarification drawing
This commit is contained in:
Ilya Kantor 2019-11-01 18:39:54 +03:00 committed by GitHub
commit 06c9dfe37c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ Let's compare two code fragments. The first one uses `setInterval`:
```js ```js
let i = 1; let i = 1;
setInterval(function() { setInterval(function() {
func(i); func(i++);
}, 100); }, 100);
``` ```
@ -198,7 +198,7 @@ setTimeout(function run() {
}, 100); }, 100);
``` ```
For `setInterval` the internal scheduler will run `func(i)` every 100ms: For `setInterval` the internal scheduler will run `func(i++)` every 100ms:
![](setinterval-interval.svg) ![](setinterval-interval.svg)