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.
This commit is contained in:
juhyun 2018-12-05 23:03:18 +09:00
parent ad8ab1d55f
commit cd7dcd6478

View file

@ -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: For instance, here we transform each element into its length:
```js run ```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 alert(lengths); // 5,7,6
``` ```