Pure Function
A function that produces the same result for the same inputs without changing outside state.
What is Pure Function in JavaScript?
Pure Function — A function that produces the same result for the same inputs without changing outside state.
function total(price, quantity) {
return price * quantity;
}
Level: Journeyman · More JavaScript terms at this level
Updated