CSE 121B: JavaScript Language

Modules

Overview

Modules are a way to organize your code into separate files. This allows you to break your code into smaller pieces that are easier to manage. It also allows you to reuse code in multiple places.

Modules are a standard for organizing and reusing JavaScript code introduced in ECMAScript 6 (ES6). They allow you to export and import functionality between different modules. ES modules have explicit syntax for exporting and importing variables, functions, and classes.

Prepare

Check Your Understanding

  1. Complete the activities presented in these Ponder Activities - WDD Learning Modules