Created by James Drummond
about 9 years ago
|
||
The syntax is like:[1, 2, 3].map(num => num * 2) // Which is equivalent to: [1, 2, 3].map(function (num) { return num * 2 }) // So this is just shorthand for writing a callback.Arrow functions are just for expressions:- They do not have this or arguments
Want to create your own Notes for free with GoConqr? Learn more.