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