From fb09afc0fd69a04424759233fa77f0f10ec5b73b Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sun, 16 May 2021 18:42:05 +0300 Subject: [PATCH] minor fixes --- 1-js/02-first-steps/02-structure/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/02-structure/article.md b/1-js/02-first-steps/02-structure/article.md index a5903ce9..acefc349 100644 --- a/1-js/02-first-steps/02-structure/article.md +++ b/1-js/02-first-steps/02-structure/article.md @@ -80,7 +80,7 @@ The difference is because JavaScript does not assume a semicolon before square b Here's how the engine sees it: ```js run no-beautify -alert("Hello")[1, 2].forEach(alert) +alert("Hello")[1, 2].forEach(alert); ``` Looks weird, right? Such merging in this case is just wrong. We need to put a semicolon after `alert` for the code to work correctly.