arrow function instead of function
example code involves arrow function, not just function
This commit is contained in:
parent
601d9583f7
commit
04893aef31
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ So, this will also work:
|
|||
setTimeout("alert('Hello')", 1000);
|
||||
```
|
||||
|
||||
But using strings is not recommended, use functions instead of them, like this:
|
||||
But using strings is not recommended, use arrow functions instead of them, like this:
|
||||
|
||||
```js run no-beautify
|
||||
setTimeout(() => alert('Hello'), 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue