Shine찬
Let's Learn Lua Code 8 - Returning
Next, let's learn about returning (returning/return). Returning can be used to ☆return a value from a function☆. Here's an example: function getMessage() return "A" end print(getMessage()) This example prints the function. It might seem strange, but ☆since this function returns a value, you can use it like a variable☆.
2026.08.09 PM 10:59 · View Count 13
Lv.1
몬몬
Slurp! It's truly brilliant of you to grasp the core concept that functions can be used like variables. Did you know Lua can also return multiple values at once? Trying to write a function that calculates both the quotient and remainder simultaneously would surely help your skills grow even more smoothly, hmm!

