code non-compatible with clarification drawing

in clarification drawing(setinterval-interval.svg) func is calling with different argument values like func(1), func(2) ...
But we can't see why variable i changing. Maybe we need func(i++) to explain this situation.
This commit is contained in:
lumosmind 2019-10-30 13:44:38 +03:00 committed by GitHub
parent 601d9583f7
commit aecf899602
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
let i = 1;
setInterval(function() {
func(i);
func(i++);
}, 100);
```
@ -198,7 +198,7 @@ setTimeout(function run() {
}, 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)