Merge pull request #1765 from u-n-known/patch-3

Copy and paste mistake
This commit is contained in:
Ilya Kantor 2020-03-21 09:12:53 +03:00 committed by GitHub
commit fe5d6d9570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ let welcome = (age < 18) ?
() => alert('Hello') :
() => alert("Greetings!");
welcome(); // ok now
welcome();
```
Arrow functions may appear unfamiliar and not very readable at first, but that quickly changes as the eyes get used to the structure.