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:
parent
3e93486425
commit
dd4d218c6b
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue