--- id: 587d7b87367417b2b2512b42 title: Mutate an Array Declared with const challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/const/g), "Do not replace const keyword.");' - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/const\s+s/g), "s should be a constant variable (by using const).");' - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/const\s+s\s*=\s*\[\s*5\s*,\s*7\s*,\s*2\s*\]\s*;?/g), "Do not change the original array declaration.");' - text: '' testString: 'assert.deepEqual(s, [2, 5, 7], "s should be equal to [2, 5, 7].");' ```
## Challenge Seed
```js const s = [5, 7, 2]; function editInPlace() { "use strict"; // change code below this line // s = [2, 5, 7]; <- this is invalid // change code above this line } editInPlace(); ```
## Solution
```js // solution required ```