Update use-the-spread-operator-to-evaluate-arrays-in-place.english.md
This commit is contained in:
committed by
Kristofer Koishigawa
parent
1a2843934f
commit
6f09033346
@ -63,6 +63,12 @@ console.log(arr2);
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
|
||||||
|
let arr2;
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
arr2 = [...arr1]; // change this line
|
||||||
|
})();
|
||||||
|
console.log(arr2);
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user