Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow function syntax vs function expression syntax

// Using function expression syntax
const addNums = function(numOne, numTwo) {
  return numOne + numTwo;
};

// Using new arrow function syntax
const addNums = (numOne, numTwo) => {
  return numOne + numTwo;
};
Source by courses.bootcampspot.com #
 
PREVIOUS NEXT
Tagged: #arrow #function #syntax #function #expression #syntax
ADD COMMENT
Topic
Name
7+7 =