Argument used in javascript not updated for next excel loop

I am using excel loop to fetch the data and a parameter form that is used in a javascript.
For the first loop it is fetching value , but 2nd loop the value in javscript is not updated.
the value of parameter outside javascript is updated.

Can you please suggest.

Hi,

Can you check the scope of the argument you have defined

Regards,
Amit Anand