From cd7dcd6478796aaea620f2f5a7a5769c361c190e Mon Sep 17 00:00:00 2001 From: juhyun Date: Wed, 5 Dec 2018 23:03:18 +0900 Subject: [PATCH] Update article.md How about adding semicolon like this? Yes, omitting the semicolon does not cause a problem. But in this case, adding the semicolon is more consistent and obvious. --- 1-js/05-data-types/05-array-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/05-array-methods/article.md b/1-js/05-data-types/05-array-methods/article.md index a378bd0f..86dc520d 100644 --- a/1-js/05-data-types/05-array-methods/article.md +++ b/1-js/05-data-types/05-array-methods/article.md @@ -329,7 +329,7 @@ It calls the function for each element of the array and returns the array of res For instance, here we transform each element into its length: ```js run -let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length) +let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length); alert(lengths); // 5,7,6 ```