Parameter
A name in a function definition for a value the function needs.
What is Parameter in JavaScript?
Parameter — A name in a function definition for a value the function needs.
function total(price, quantity) {
return price * quantity;
}
const orderTotal = total(4, 3);
Level: Apprentice · More JavaScript terms at this level
Updated