I'm very new I dont know what the problem can possibly be. Code
for (let i = 0; i < 5; i++) {
console.log("Inside the loop:", i);
}
console.log("Outside the loop:", i);
This is what it prints,
Inside the loop: Inside the loop: Inside the loop: Inside the loop: Inside the loop:
I am trying to find the difference between let and var, but if you can, I don't really want a too complex sentence, as I probably wont understand, anything.