You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
😷
Ursula CJ
ursulacj
😷
Budding program manager and part-time front-end dev.
The distinction between anonymous functions and lambdas in JavaScript.
TL;DR - Lambda means "function used as data".
Anonymous function means "function without a name".
This is one of the relatively few cases where the Wikipedia definition of a word, while not entirely wrong, is misleading. Lambdas and anonymous functions are distinct ideas.
These ideas are commonly confused because in many programming languages (and lambda calculus) all lambdas are anonymous or vise verse.
In JavaScript, not all lambdas are anonymous, and not all anonymous functions are lambdas, so the distinction has some practical meaning.
This guide is generic in that it does pertain to any particular web framework, e.g., Express.
When the time comes to implement a user story (feature) in a typical web application, following the steps below usually is a good approach to take in most cases...