Answers for "name arrow function"

1

name arrow function

//Long version  
function add(a, b) {  
    return a + b;   
}

// Shorthand  
const add = (a, b) => a + b;
Posted by: Guest on April-27-2021
0

arrow function

const x = (x, y) => { return x * y };
Posted by: Guest on July-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language