Argument
noun
say it: “AR-gyuh-ment” /ˈɑːrɡjəmənt/
The actual value you hand to a function when you call it, such as 4.5 in addTax(4.5).
What is Argument in JavaScript?
Argument — The actual value you hand to a function when you call it.
function total(price, quantity) {
return price * quantity;
}
const orderTotal = total(4, 3);
In a sentence
- “I called addTip(20) with the argument 20, the cost of the meal.”
Level: Apprentice · More JavaScript terms at this level
Updated