How => works in JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How => works in JavaScript?

How arrow functions (=>) works in JavaScript ES6?

27th Aug 2021, 4:41 PM
Anas
Anas - avatar
1 Answer
+ 3
Arrow functions are just like anonymous functions or lambdas And => is the symbol(keywords) for arrow expression Its a symbol introduced in Es6 every keyword has its definition to The compiler it tells what to do when this keyword calls like this => works it tells compiler to make a function object
27th Aug 2021, 5:01 PM
Vtec Fan
Vtec Fan - avatar