Skip to content

Commit 52e0988

Browse files
authored
Fix Grammer
1 parent 1191dbb commit 52e0988

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/08-settimeout-setinterval

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/08-settimeout-setinterval/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Novice developers sometimes make a mistake by adding brackets `()` after the fun
7575
// wrong!
7676
setTimeout(sayHi(), 1000);
7777
```
78-
That doesn't work, because `setTimeout` expects a reference to function. And here `sayHi()` runs the function, and the *result of its execution* is passed to `setTimeout`. In our case the result of `sayHi()` is `undefined` (the function returns nothing), so nothing is scheduled.
78+
That doesn't work, because `setTimeout` expects a reference to a function. And here `sayHi()` runs the function, and the *result of its execution* is passed to `setTimeout`. In our case the result of `sayHi()` is `undefined` (the function returns nothing), so nothing is scheduled.
7979
````
8080

8181
### Canceling with clearTimeout

0 commit comments

Comments
 (0)