Background

Writing one-line functions, or generally small functions, is very common. The general approach to writing small functions is a long and tedious task. It also sometimes becomes messy and difficult to debug. The solution is arrow functions.

Get hands-on with 1200+ tech skills courses.