Update use-the-spread-operator-to-evaluate-arrays-in-place.english.md

This commit is contained in:
Prabhat Kumar Sahu
2018-10-14 11:15:54 +05:30
committed by Kristofer Koishigawa
parent 1a2843934f
commit 6f09033346

View File

@ -63,6 +63,12 @@ console.log(arr2);
<section id='solution'>
```js
// solution required
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;
(function() {
"use strict";
arr2 = [...arr1]; // change this line
})();
console.log(arr2);
```
</section>