Merge pull request #2899 from Rnbsov/patch-8

added a possibly missing exclamation mark
This commit is contained in:
Ilya Kantor 2022-04-14 09:15:18 +03:00 committed by GitHub
commit 603170b22e
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();