Skip to content

Glossary: JavaScript Basics

Arrow function

Also written: arrow functions, =>

A shorter way to write a function using `=>`, such as `(cents) => cents / 100`. With a single expression after the arrow, the value is returned automatically.

Where the book teaches it