BETA freeCodeCamp -ES6: Mutate an Array Declared with const- possible bug report

BETA freeCodeCamp -ES6: Mutate an Array Declared with const- possible bug report
0

#1

Hello, my code:


"use strict";

const s = [5, 7, 2];
// change code below this line
s[0] = 2;
s[1] = 5;
s[2] = 7;
// change code above this line
console.log(s);

Result:
Do not replace const keyword. WRONG
s is declared with const. WRONG
Do not change the original array declaration. WRONG
s should be equal to [2, 5, 7]. GOOD

I don’t think my response is wrong.

Have a good day


#2

There’s an issue with the challenges that use the const keyword.


#3

Ok thanks you. So exercice with const won’t work.