Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

arrow function => breakdown steps

// Traditional Anonymous Function
function (a, b){
  let chuck = 42;
  return a + b + chuck;
}

// Arrow Function
(a, b) => {
  let chuck = 42;
  return a + b + chuck;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #arrow #function #breakdown #steps
ADD COMMENT
Topic
Name
4+7 =