๐Ÿ“˜

Parameter

A named placeholder a function uses for the values it receives.

๐Ÿ˜Š In simple words

A named placeholder a function uses for the values it receives.

๐ŸŽ“ Technical definition

A variable declared in a function's definition that receives the value of the corresponding argument when the function is called.

Pseudocode example
1FUNCTION GREET(NAME)   // NAME is a parameter2    DISPLAY "Hi", NAME3END FUNCTION

๐ŸŽ Real-world analogy

The labelled empty cups on a recipe card, waiting for ingredients.

๐Ÿ”— Related concepts

โ† Whole glossary