Create modular code by using functions in JavaScript

Beginner
Developer
Student
Visual Studio Code

Functions are the building blocks for any application you'll create. With functions, you can create named, reusable sections of code to help make it more readable and maintainable. This module explores the core concepts of functions.

Learning objectives

In this module, you'll learn:

  • How to write a basic function.
  • What parameters are and how to use them.
  • How to return values from a function.
  • How to use anonymous functions.

Prerequisites

  • A web browser
  • Visual Studio Code and Live Server extension, installed