Arrow functions are preety cool π . They help you make code shorter, which gives less room for errors to hide. They also help you write code that's easier to understand once you get used to the syntax.
The Syntax.
Arrow function is denoted by (=>) . In ES6 its a new way to make anonymous function.
_ Arrow function : _
const arrowFunction = (arg1, arg2) => {
// pls do something
}
Top comments (0)