Arrow Function
noun
say it: “AIR-oh FUNGK-shun” /ˈæroʊ ˈfʌŋkʃən/
A short way to write a JavaScript function with =>, such as p => p.price.
What is Arrow Function in JavaScript?
Arrow Function — A compact function expression written with the => symbol.
const total = (price, quantity) => price * quantity;
In a sentence
- “I passed an arrow function, p => p.price < 10, to filter.”
Level: Apprentice · More JavaScript terms at this level
Updated