Tech Blogs

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));
Posted by suneesh at 21:37 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

About Me

suneesh
View my complete profile

Blog Archive

  • ▼  2020 (4)
    • ►  September (1)
    • ►  August (2)
    • ▼  January (1)
      • JS simple arrow function
  • ►  2019 (1)
    • ►  December (1)
Simple theme. Powered by Blogger.