Es6 problem help

Tell us what’s happening:
how to change the const s = [5, 7, 2] to [2, 5, 7]

Your code so far

const s = [5, 7, 2];
function editInPlace() {
'use strict';
// Only change code below this line

// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Mutate an Array Declared with const

Link to the challenge:

It looks like you want to reverse the array. What have you tried so far? Have a look at MDN web docs if you haven’t already.

see the example code:

"use strict";
const s = [5, 6, 7];
s = [1, 2, 3]; // throws error, trying to assign a const
s[2] = 45; // works just as it would with an array declared with var or let
console.log(s); // returns [5, 6, 45]

it explaines that you can’t just reassing the whole array, but you can change single array elements, via bracket notation
like you learned in the challenge Modify Array Data With Indexes