22

Arrow Functions

In this Chapter

  • Learn about arrow functions and their abbreviated syntax

  • Learn when arrow functions make a whole lot of sense to use

Before we move on, let’s address the elephant in the room. Arrow function is probably the coolest name for some technical thing ever. It makes the names for all the other JavaScript concepts we’ve seen so far (and will see in the future) seem downright dreadful. With this important observation out of the way, let’s get down to business and learn about what arrow functions are and what makes them an upgrade over the traditional functions we have seen.

What Are Arrow Functions?

The best way to understand arrow functions is to dive right in, start looking at examples, and observe their behavior. ...

Get Javascript Absolute Beginner's Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.