For Loop Problem

Can someone tell me why my javascript output shows different when the only thing I changed was the variable name?

Screenshot 2023-03-06 at 10.12.26 AM

In your second loop you changed row to number instead of i.