Arrow Functions in JavaScript :
Introduction:
Regular Function :
function add(a, b){
return `The sum is ${a+b}.`
}
console.log(add(3,5));
Output :
The sum is 8.
Arrow Function :
const addInArrow = (a,b) => {
return a+b ;
dev-radhika.hashnode.dev4 min read