Update javascript-destructuring-assignment.md
In Array destructuring example the skip value mentioned in the comment should be 9, not 12.
This commit is contained in:
@ -18,7 +18,7 @@ const nums = [ 3, 6, 9, 12, 15 ];
|
||||
const [
|
||||
k, // k = 3
|
||||
l, // l = 6
|
||||
, // Skip a value (12)
|
||||
, // Skip a value (9)
|
||||
...n // n = [12, 15]
|
||||
] = nums;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user