Merge pull request #2899 from Rnbsov/patch-8
added a possibly missing exclamation mark
This commit is contained in:
commit
603170b22e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ For instance, to dynamically create a function:
|
||||||
let age = prompt("What is your age?", 18);
|
let age = prompt("What is your age?", 18);
|
||||||
|
|
||||||
let welcome = (age < 18) ?
|
let welcome = (age < 18) ?
|
||||||
() => alert('Hello') :
|
() => alert('Hello!') :
|
||||||
() => alert("Greetings!");
|
() => alert("Greetings!");
|
||||||
|
|
||||||
welcome();
|
welcome();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue