Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow functions javascript

// Traditional Function Expression
var add = function(a,b){
  return a + b;
}

// Arrow Function Expression
var arrowAdd = (a,b) => a + b;
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #arrow #functions #javascript
ADD COMMENT
Topic
Name
7+7 =