Level 1 · Foundations
Module 5: Functions and Reusable Logic
Function declarations and expressions
Declare and call functions, write function expressions, explain hoisting of declarations, and name functions for what they do.
Lesson 22
Parameters and arguments
Define parameters, pass arguments, use default parameters, handle missing arguments, and explain that primitives are passed by value.
Lesson 23
Return values
Return values from functions, use the result in expressions, explain that return ends the function, and choose between printing and returning.
Lesson 24
Arrow functions
Write arrow functions with block and concise bodies, return object literals correctly, pass arrow functions as callbacks, and know when a regular function is better.
Lesson 25
Combining functions into applications
Break a problem into small single-purpose functions, compose them so one function's output feeds the next, test each function, and assemble a small application.
Module mastery assessment
Eight questions and a practical task covering Lessons 21 to 25: declarations, parameters, return values, arrow functions and composing functions.