ES6 - Mutate an Array Declared with const

Tell us what’s happening:

Theres zero telling what we should do or how we should do it. I cant even Google this.

Your code so far

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

  // Using s = [2, 5, 7] would be invalid
  

  // Only change code above this line
}
editInPlace();

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Safari/605.1.15

Challenge Information:

ES6 - Mutate an Array Declared with const

An array is declared as const s = [5, 7, 2]. Change the array to [2, 5, 7] using various element assignments.

Here are the instructions. Do you know how to do array assignments?

I would not ask GPT or copy answers you find. That slows down your understanding at this stage in the learning.

Also note - pop and unshift are not array assignment methods like the instructions asked for.