Skip to content

Commit cd7dcd6

Browse files
committed
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 parent ad8ab1d commit cd7dcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ It calls the function for each element of the array and returns the array of res
329329
For instance, here we transform each element into its length:
330330

331331
```js run
332-
let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length)
332+
let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length);
333333
alert(lengths); // 5,7,6
334334
```
335335

0 commit comments

Comments
 (0)