JavaScript Functions
Javascript functions for a long time looked like this
function add(a, b) {
return a + b;
}
Then ES6 came along and we got arrow functions
const add = (a, b) => a + b;
Javascript functions for a long time looked like this
function add(a, b) {
return a + b;
}
Then ES6 came along and we got arrow functions
const add = (a, b) => a + b;