correction; it uses the value from the last iteration. Doing a console.log displays the correct outp...
p
correction; it uses the value from the last iteration. Doing a console.log displays the correct output value for each iteration