const add = (a, b) => a + b;
console.log(add(5, 3)); // 8
Explanation:
- Arrow functions are a shorter way to write functions.
add(5,3)returns8.
const add = (a, b) => a + b;
console.log(add(5, 3)); // 8
Explanation:
add(5,3) returns 8.
Leave a Reply