Javascript Printing Same Value If We Call Function Inside The Loop

Javascript Printing Same Value If We Call Function Inside The Loop