Skip to content

Commit 911f783

Browse files
committed
minor
1 parent 9dff4c0 commit 911f783

File tree

1 file changed

+2
-2
lines changed
  • 1-js/05-data-types/09-destructuring-assignment

1 file changed

+2
-2
lines changed

1-js/05-data-types/09-destructuring-assignment/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ Unwanted elements of the array can also be thrown away via an extra comma:
4747
4848
```js run
4949
*!*
50-
// second and forth elements are not needed
50+
// second element is not needed
5151
let [firstName, , title] = ["Julius", "Caesar", "Consul", "of the Roman Republic"];
5252
*/!*
5353
5454
alert( title ); // Consul
5555
```
5656
57-
In the code above, although thesecond elements of the array is skipped, the third one is assigned to `title`, and the rest are also skipped.
57+
In the code above, the second element of the array is skipped, the third one is assigned to `title`, and the rest of the array is also skipped.
5858
````
5959

6060
````smart header="Works with any iterable on the right-side"

0 commit comments

Comments
 (0)