From 7f43c29146cf09bf8c6204a6eebf5c0da370318f Mon Sep 17 00:00:00 2001 From: Jynxio <50298406+jynxio@users.noreply.github.com> Date: Mon, 16 May 2022 11:14:43 +0800 Subject: [PATCH] Fix bug: sample code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A sample code is wrong / 一处示例代码写错了 --- 1-js/02-first-steps/17-arrow-functions-basics/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/17-arrow-functions-basics/article.md b/1-js/02-first-steps/17-arrow-functions-basics/article.md index 7d03614764..3567e974e0 100644 --- a/1-js/02-first-steps/17-arrow-functions-basics/article.md +++ b/1-js/02-first-steps/17-arrow-functions-basics/article.md @@ -64,7 +64,7 @@ alert( sum(1, 2) ); // 3 let age = prompt("What is your age?", 18); let welcome = (age < 18) ? - () => alert('Hello'!) : + () => alert('Hello!') : () => alert("Greetings!"); welcome();