From b96642dd205a06071bace4c43bebf93dcfc7a62d Mon Sep 17 00:00:00 2001 From: Shreenanda <54429809+shreenanda-8@users.noreply.github.com> Date: Mon, 15 Mar 2021 06:48:10 +0530 Subject: [PATCH 1/2] Add semicolon --- .../17-arrow-functions-basics/1-rewrite-arrow/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/task.md b/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/task.md index 2f44db27..e18c08a8 100644 --- a/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/task.md +++ b/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/task.md @@ -5,7 +5,7 @@ Replace Function Expressions with arrow functions in the code below: ```js run function ask(question, yes, no) { - if (confirm(question)) yes() + if (confirm(question)) yes(); else no(); } From 51b2becd6432972538041b3ac8e36ad2ca1678e0 Mon Sep 17 00:00:00 2001 From: Shreenanda <54429809+shreenanda-8@users.noreply.github.com> Date: Mon, 15 Mar 2021 06:48:59 +0530 Subject: [PATCH 2/2] Add semicolon --- .../17-arrow-functions-basics/1-rewrite-arrow/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/solution.md b/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/solution.md index 3ea11247..041db18b 100644 --- a/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/solution.md +++ b/1-js/02-first-steps/17-arrow-functions-basics/1-rewrite-arrow/solution.md @@ -1,7 +1,7 @@ ```js run function ask(question, yes, no) { - if (confirm(question)) yes() + if (confirm(question)) yes(); else no(); }