They are additionally called lambda features in different languages. Using fats arrow (=>) we drop the want to use the 'function' keyword. Parameters are handed in the angular brackets <>, and the characteristic expression is enclosed inside the curly brackets {}.

Example

                                        

items.forEach((a) => {
    console.log(a);
    incrementedItems.push(a+1);
});

Suggest An Answer

No suggestions Available!