When I set const value for arrays, I can change it later. why is there such a thing (google translate) Shouldn't the value I assign const throw an error?
const values=['a','b','c'];
values[0]='aaa';
console.log(values[0]);
When I set const value for arrays, I can change it later. why is there such a thing (google translate) Shouldn't the value I assign const throw an error?
const values=['a','b','c'];
values[0]='aaa';
console.log(values[0]);