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:
parent
ad8ab1d55f
commit
cd7dcd6478
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue