Hello guys i am wonder why this code here prints "24" in the output I thought "numbers" was a variable and would only output if it was called this is really confusing as i am still starting out scripting. I dont understand how a variable can execute without being told to like print(numbers)
local function nas(x)
print(x)
end
local numbers = nas(24) -- Outputs 24
I thought this would just make "x" = to 24 not execute the code without me calling the function like nas() why does this happen i dont get it, and when does it happen in code? thanks you

1 comment
Thank you so much i understand now