loading
main.js
1
2
3
4
5
6
7
8
let vowels= ['a','e','i','o','u'];

for (let i = 0;i < vowels.length; i++) { 
    console.log(vowels[i]);
}

// Let's see if we can access the i loop variable...
console.log(i); // ReferenceError: i is not defined
Native Browser JavaScript