Published Apr 23, 2021Updated Oct 26, 2022
Contribute to Docs

An argument is the actual value of a variable (aka. the parameter) passed into a function.


Suppose we have a function called tripleThis():

function tripleThis(x) {
return x * 3;

The parameter is x since it is the variable. The argument is 6 since it is the actual value.

All contributors

Looking to contribute?

Learn More on Codecademy