DEV Community

stalin s
stalin s

Posted on • Updated on

Arrow functions

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
}

Enter fullscreen mode Exit fullscreen mode

Top comments (0)