Функции стрелки =>
(param1, paramN) => {
let a = 1;
return a + param1 + paramN;
}
Enchanting Echidna
(param1, paramN) => {
let a = 1;
return a + param1 + paramN;
}
// Traditional Anonymous Function
function (a, b){
let chuck = 42;
return a + b + chuck;
}
// Arrow Function
(a, b) => {
let chuck = 42;
return a + b + chuck;
}