Team,
I have doubt in the following statement from freecodecamp tutorial.
“printNumTwo() returned the correct value because three different I variables with unique values (0, 1, and 2) were created by the let keyword within the loop statement.”
if initializer part of for loop executes only once then in which part of for loop, the 3 separate “i” variable is being created?
please explain the same in details.
Thanks
Sam