CodeBeginner

Function parameter

Also known as formal parameter · function parameters

A named input in a function definition that receives a value when the function is called.

In the real world

In function greet(name) { return 'Hi ' + name; }, name is a parameter.

Related

Go a little deeper