@msrissxox
As someone else said in a different way, const only says that you cannot reassign the variable.
const x = [1, 2, 3];
x = [1, 2, 3, 4];
Will throw an error and not work. You cant reassign the x identifier to something else.
But you can mutate/alter the *value* itself, for