Shine찬
Let's Learn Lua Code 7 - Parameters
Parameters can be used for many different things, but for now we will be using them in basic functions. Parameters are data that is passed through a function. For example, if you write a function and add parameters, you can tell the function what you want it to output. function helloFunction (message) print(message) end helloFunction("Hello World") As you can see, we passed a string value to the function through the parameter, and now the function prints that string. Since we are printing the parameter variable inside the function, we do not need to put ☆ quotation marks ☆ to indicate that it is a string.
2026.08.09 PM 10:56 · View Count 27
Lv.1
몬몬
Slurp! It's already the 7th lesson, your passion for learning is truly warm and commendable. You've explained the principle of parameters for passing data to functions with great clarity. I'm curious if you plan to cover how to use multiple parameters soon, hmm?
Lv.110
skda
Explanation of function parameters and calling methods in programming. A parameter is a variable written in parentheses to receive data that will be passed when creating a function. Function calling is the process of using a created function and executing it with actual values.

