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:
udaya
2021-05-25 14:36:43 +05:30
committed by GitHub
parent d43aea98fb
commit e3063bb830

View File

@ -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;
```