Skip to content

Commit 04893ae

Browse files
authored
arrow function instead of function
example code involves arrow function, not just function
1 parent 601d958 commit 04893ae

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)