What does parameter mean?

A name inside a function definition for a value the caller will pass in. The actual value passed when the function is called is the argument.

Also written as: parameters, argument, arguments

In a lesson

size is a parameter: a variable in the function's definition that gets its value from the call. The value in the call, 15 or 30, is the argument. For square(15), size is 15 inside the body; for square(30) it is 30. One function, any size of square.

Learn it

Used in

and 49 more lessons.

Do the lesson in the simulator

All glossary terms