Skip to content

Commit 8e48598

Browse files
authored
added a possibly missing exclamation mark
In the previous article, in a similar example, he was
1 parent 2cca9a9 commit 8e48598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/02-first-steps/17-arrow-functions-basics

1-js/02-first-steps/17-arrow-functions-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For instance, to dynamically create a function:
6464
let age = prompt("What is your age?", 18);
6565
6666
let welcome = (age < 18) ?
67-
() => alert('Hello') :
67+
() => alert('Hello!') :
6868
() => alert("Greetings!");
6969
7070
welcome();

0 commit comments

Comments
 (0)