About 477,000 results
Open links in new tab
  1. JavaScript Modules - W3Schools

    Modules. JavaScript modules allow you to break up your code into separate files. This makes it easier to maintain a code-base. Modules are imported from external files with the import …

  2. JavaScript modules - JavaScript | MDN - MDN Web Docs

    May 14, 2019 · To demonstrate usage of modules, we've created a set of examples that you can find on GitHub. These examples demonstrate a set of modules that create a <canvas> …

  3. JavaScript Modules – Explained with Examples

    Jul 28, 2021 · A module in JavaScript is just a file containing related code. In JavaScript, we use the import and export keywords to share and receive functionalities respectively across …

  4. Modules, introduction - The Modern JavaScript Tutorial

    Oct 14, 2022 · As modules support special keywords and features, we must tell the browser that a script should be treated as a module, by using the attribute <script type="module">. Like this: …

  5. JavaScript Modules - GeeksforGeeks

    Feb 19, 2025 · Here is the syntax for creating and using JavaScript modules. The example illustrates how to export and import functionality between files. JavaScript

  6. JavaScript Modules – Explained with Examples - Expertbeacon

    Aug 30, 2024 · In this comprehensive guide, we‘ll explore what JavaScript modules are, why they‘re useful, how to work with exports and imports by walking through approachable …

  7. Code examples that accompany the MDN JavaScript/ECMAScript ... - GitHub

    Run the example live. The "modules" directory contains a series of examples that explain how JavaScript modules are used. The subdirectories are as follows: basic-modules: Simple …

  8. JavaScript Modules: A Comprehensive Tutorial

    Oct 7, 2024 · JavaScript modules are supported natively using the import and export keywords in modern JavaScript environments (ES6 and beyond). This tutorial will cover how to use …

  9. JavaScript Modules - Organizing Code Effectively

    Oct 18, 2023 · In this tutorial, we show how to create and use modules in JavaScript. A module is a container for JavaScript code. A module is defined in a separate file. The purpose of a …

  10. JavaScript Modules Explained: Import, Export & Examples

    Mar 8, 2025 · JavaScript modules help organise your code by splitting it into separate files, making it easier to manage and reuse across projects. Modules enhance code maintainability, …

  11. Some results have been removed
Refresh