What's the difference between an argument and a parameter?

Okay, I’m having trouble understanding the difference between an argument and a parameter.

1 Like
function foo(Parameter1, Parameter2)


foo(Argument1, Argument2)

You pass a Argument to a function, and the function receives Parameters I believe.

EDIT: Oops

1 Like

Parameters are a function’s input variables. They are sometimes called formal parameters.

local function foo(bar, baz) -- bar and baz are parameters


Arguments are a function’s input values. For this reason they are sometimes also called actual parameters.

foo("hello", 1) -- arguments are "hello" and 1