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.
Local variables A local variable is declared within one specific sub-program of a larger main program. During the execution of this sub-program, the values of local variables will be held in RAM.