Working with objects in a JavaScript Arrow Function

added by DotNetKicks
7/15/2020 2:26:48 PM

575 Views

The JavaScript Arrow function is a shorter way of writing a function expression. Let us say you have a function expression as below, var add = function(num1,num2){ return num1+num2; } The above function can refactor for a shorter syntax using the arrow function as below, var add = (num1,num2) => num1+num2; So, as you see,...


0 comments