Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow function Java Script

param => expression
(param) => expression

// Arrow Function
(a, b) => {
  const chuck = 42;
  return a + b + chuck;
};

Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #arrow #function #Java #Script
ADD COMMENT
Topic
Name
8+6 =