Argument
An argument is the actual value of a variable (aka. the parameter) passed into a function.
Example
Suppose we have a function called tripleThis()
:
function tripleThis(x) {return x * 3;}tripleThis(6);
The parameter is x
since it is the variable. The argument is 6
since it is the actual value.
All contributors
- garanews222 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- christian.dinh2481 total contributions
- MJLyonnais11 total contributions
- garanews
- Anonymous contributor
- christian.dinh
- MJLyonnais
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.