News

The variable i is declared using the let keyword. This ensures it is a local variable. Initially, its value is undefined, before the for loop assigns and modifies its value.