Merge pull request #1553 from lumosmind/patch-18

arrow function instead of function
This commit is contained in:
Ilya Kantor 2019-11-01 18:40:16 +03:00 committed by GitHub
commit 24d3bec0c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);