Here is my example:
this is JS function:
let f = function (a, b) {
return a + b;
};
console.log(f(5, 6));
and this is the same function but with arrow (lambda):
let q = (a, b)=>a + b;
console.log(q(5, 6));
Another 3 examples:
//example with array and forEach:
[10, 20, 23, 432, 343, "text"].forEach(x=>console.log(x));
//example with .filter:
console.log([10, 20, 30].filter(a=>a > 15));
//example with .map:
console.log([10, 20, 30].map(a=>a * 2));
Hope you get it