var container = document.getElementById('container');
for (var x = 0; x <= 5; x++) {
var counter = x;
const counterConst = x;
let counterLet = x;
counter = 1;
}
console.log(counter);
console.log(counterConst); //Error
console.log(counterLet); //Error
//`var` is now the weakest signal available when you define a variable in JavaScript
//`const` is a signal that the identifier won’t be reassigned.
//`let`, is a signal that the variable may be reassigned, such as a counter in a loop, or a value swap in an algorithm. It also signals that the variable will be used only in the block it’s defined in, which is not always the entire containing function.