As far as I know, it is not possible to redeclare a const array.
However when I declare arr inside the loop, it seems that arr is redeclare for each iteration.
I don't understand this situation, does for loop create a new scope for each time i change?
for (let i=0; i<5; i++){
const arr = [];
arr.push(i);
console.log(arr[0]);
}
//console: 0 1 2 3 4
constvariable inside a function, then call that function multiple times: it creates a new scope each time