Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

normal function vs arrow function

// Normal Function
let add = function (num1, num2) {
return num1 + num2;
}

// Arrow Function
let add = (num1, num2) => num1 + num2;
 
PREVIOUS NEXT
Tagged: #normal #function #arrow #function
ADD COMMENT
Topic
Name
5+5 =