Mutate array declared with Const

Hello, suggesting a shorter solution that passed

Lesson link

Solution
const s = [5, 7, 2];

function editInPlace() {
  'use strict';
s.unshift(s.pop());
  }

editInPlace();

Hello there.

Thank you, for your contribution. For future contributions, please wrap your solution within :

[details]
```
code goes here...
```
[/details]
1 Like

Thanks, I’ll keep that in mind

I like the suggestion; however, I don’t think that it fits the requirement

using various element assignment.