Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js anonymous functions

// ES5
var multiplyES5 = function(x, y) {
  return x * y;
};

// ES6
const multiplyES6 = (x, y) => { return x * y };
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #js #anonymous #functions
ADD COMMENT
Topic
Name
5+3 =