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
- Read 📝 Introduction to Libraries with ES Modules - WDD Learning Modules
- Reference 📑 JavaScript Modules - MDN web docs
Check Your Understanding
- Complete the activities presented in these Ponder Activities - WDD Learning Modules