Hello, could anyone just tell me whats the difference between :
for key, value in ipairs(table) do
value = 5 -- the values in the table will not change when i will print the table after
end
And
for key, value in ipairs(table) do
table[key] = 5 -- the values in the table will change when i will print the table after
end
I dont understand since like table[key] is same as value, so why it dont work as the same way when i change the value for example ?? Hope someone can answer me, thanks
