Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

name arrow function

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

// Shorthand  
const add = (a, b) => a + b;   
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #arrow #function
ADD COMMENT
Topic
Name
7+2 =