Merge pull request #1554 from lumosmind/patch-19
code non-compatible with clarification drawing
This commit is contained in:
commit
06c9dfe37c
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
||||

|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue