What's lambda in Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What's lambda in Javascript?

1st Sep 2017, 12:34 AM
Abraham Mora
Abraham Mora - avatar
3 Answers
+ 4
it is short writings in coding here is a good example for you to check https://code.sololearn.com/WAlySl61dQKS/?ref=app
1st Sep 2017, 12:40 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
const isEven = x => x % 2 === 0
1st Sep 2017, 12:58 AM
A_Hook
A_Hook - avatar
+ 1
JavaScript calls them closures or even just anonymous functions. They're just functions used where you would normally put a variable's value. Traditional syntax: var a = function () { console.log('hello'); }; There are a couple of new syntaxes allowed in ES6 (one shown by A_hook), but they treat some variables (like `this`) a little differently.
13th Jan 2018, 5:20 AM
Vince Aggrippino
Vince Aggrippino - avatar