Phase 4 · JavaScript
TopicsFunctions
Part of the Frontend Developer Roadmap.
Summary
Reusable blocks of code — declared via function declarations, expressions, or arrow functions — each with subtly different behavior around `this` and hoisting. Functions are first-class values in JavaScript, so they can be stored, passed around, returned, and composed into larger behaviors.
How to Learn This
- 1Write the same function as a declaration, expression and arrow function. Validate your understanding by applying it in a small practical example.
- 2Learn default parameters and rest parameters (`...args`). Focus on understanding the underlying reason it works, not only memorizing the definition.
- 3Understand arrow functions don't have their own `this`.
More topics in JavaScript
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.