| |
|
|
| 07 Jan 2015 04:41 AM |
A parameter is just a value/object passed into a function
function CallThisAFunction(a, b) print(a, b) end
CallThisAFunction("Hello", "World")
When this is called, a="Hello", and b="World" |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 07 Jan 2015 04:55 AM |
Parameters are declaring variables to be passed to a function when it is called Arguments are when they are passed to the function ^^ |
|
|
| Report Abuse |
|
|
udayk8139
|
  |
| Joined: 25 Aug 2013 |
| Total Posts: 622 |
|
|
| 07 Jan 2015 07:18 AM |
| We use parameters to get something with an 'x' value(unknown). I am still trying to practice more functions with parameters. #Practicemakesmanperfect :) |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2015 08:04 AM |
Ex:
function PrintThis(value) print(value) end
PrintThis("Hello!")
When the it is called, the "Hello!" become the value. And then it prints the value AKA the "Hello!" |
|
|
| Report Abuse |
|
|