Skip to content

Commit 24d3bec

Browse files
authored
Merge pull request #1553 from lumosmind/patch-18
arrow function instead of function
2 parents 06c9dfe + 04893ae commit 24d3bec

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ So, this will also work:
6161
setTimeout("alert('Hello')", 1000);
6262
```
6363

64-
But using strings is not recommended, use functions instead of them, like this:
64+
But using strings is not recommended, use arrow functions instead of them, like this:
6565

6666
```js run no-beautify
6767
setTimeout(() => alert('Hello'), 1000);

0 commit comments

Comments
 (0)