Merge pull request #1553 from lumosmind/patch-18
arrow function instead of function
This commit is contained in:
commit
24d3bec0c2
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