Sunday, 5 January 2020

JS simple arrow function

Below is the code for a simple arrow function in javascript
var total =(a,b)=>a+b;
console.log(total(6,20));

No comments:

Post a Comment