Copy and paste mistake

The code never has been not OK. It's just a copy from an example of the chapter before.
This commit is contained in:
u-n-known 2020-02-20 23:54:01 +01:00 committed by GitHub
parent 3e93486425
commit dd4d218c6b
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('Hello') :
() => alert("Greetings!"); () => 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. Arrow functions may appear unfamiliar and not very readable at first, but that quickly changes as the eyes get used to the structure.