Modern Style of Javascript with Arrow Functions

Written by srimanikanta | Published 2020/02/24
Tech Story Tags: javascript | javascript-development | programming | functional-programming | ecmascript-6 | nodejs | software-development | beginners

TLDR Arrow functions are introduced in ES6 which is a modern style for writing javascript functions. Traditional Javascript functions are easy to understand and implement. Arrow functions don’t have inbuilt arguments property, unlike traditional Javascript functions. They are more convenient for callbacks, promises, or for methods like map, reduce, and forEach. The result for the above code will be as same as the previously written code. The syntax for the arrow function with a single argument can be implemented in two ways — or else we can also create the above function in a different way.via the TL;DR App

no story

Written by srimanikanta | Problem Solver || Started Journey as a Programmer || Techie Guy || Bibliophile || Love to write blog
Published by HackerNoon on 2020/02/24