JAVASCRIPT CLIMBSChapter 1 · JS Basics
Arrow Functions
JavaScript functions can be written using the compact arrow function syntax. They bundle reusable logic under a name.
Worked example
How it reads
- const greet = (name) => { ... } defines an arrow function
- Inputs go in parentheses, followed by the fat arrow =>
- return passes the value back to the caller

Cloud tip: Arrow functions are the standard in modern JavaScript and React development.


