DEV Community

stalin s
stalin s

Posted on โ€ข Edited on

1

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)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay