Arrow Functions
Arrow functions provide a shorter syntax for writing functions.
Basic Syntax
Loading JavaScript Playground...
Single Parameter
Loading JavaScript Playground...
Multiple Lines
Loading JavaScript Playground...
Arrow Functions in Callbacks
Loading JavaScript Playground...
Exercise: Convert to Arrow
Convert a traditional function to arrow syntax:
Loading JavaScript Exercise...
Exercise: Array Transform
Use arrow functions with map:
Loading JavaScript Exercise...
Up next · Lesson 23 of 37
Array Basics
1 min read
22 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

