JavaScript & TypeScript

Module

/ˈmɒdjuːl/

Definition

A self-contained file that exports specific functions or values, enabling code reuse and separation of concerns.

Example in context

"Move the date utilities to a separate module and export them — then import only what each file needs."

Practice this term

Master Module in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.