Bryan Martin
Mar 21, 2023

If you don't mind, may I refine this statement a little? Arrow functions are shorthand method for declaring anonymous functions. Anonymous functions, as you would guess, are functions that are declared without a name.

In your example, you set a variable equal to the function declaration, which gives it a name. The declaration itself is anonymous, however. If you look at your example with the people array, your functions for filtering and mapping don't have names.

No responses yet