I don't Understand "How Lua save data on the same variable when we Iterate over it"

I know Lua remember value in the same field/function with the Same defined Variable. but I still lack the concept behind it. Let’s say I’see Int Variable = 2 which can be modify if we iterate over it Int variable = 8 Same logic I was applying on the Code. I got the results, but… Read More I don't Understand "How Lua save data on the same variable when we Iterate over it"