added a possibly missing exclamation mark

In the previous article, in a similar example, he was
This commit is contained in:
Lavrentiy Rubtsov 2022-02-28 06:16:42 +06:00 committed by GitHub
parent 2cca9a9d09
commit 8e48598963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ For instance, to dynamically create a function:
let age = prompt("What is your age?", 18);
let welcome = (age < 18) ?
() => alert('Hello') :
() => alert('Hello!') :
() => alert("Greetings!");
welcome();