About 59,400 results
Open links in new tab
  1. JavaScript modules - JavaScript | MDN - MDN Web Docs

    Nov 3, 2025 · 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> element on a …

  2. JavaScript Modules - W3Schools

    Modules promote reusability by enabling the export of functions, variables, or objects from one file and their import into other files or projects. This eliminates redundant code and fosters a more efficient …

  3. 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">.

  4. JavaScript Modules – Explained with Examples - freeCodeCamp.org

    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 different modules.

  5. JavaScript Modules - GeeksforGeeks

    Jul 31, 2025 · A JavaScript module is a small piece of code that can be used in different parts of your program. It helps break down big projects into smaller, more manageable sections, each focused on …

  6. Understanding JavaScript Modules: From Basics to Common Pitfalls

    Apr 3, 2025 · Modules enhance code readability, reusability, maintainability, and manageability. By dividing the code into smaller chunks, each focusing on a specific feature, modules make the code …

  7. Mastering JavaScript Modules: A Comprehensive Guide - W3docs

    JavaScript modules let developers organize their code into separate files, making it easier to manage. Below, we cover the basic syntax and use of modules. Modules use import and export statements to …

  8. 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 examples, design …

  9. JavaScript Modules – An In-Depth Practical Guide - TheLinuxCode

    Dec 11, 2024 · Leveraging modules effectively requires knowledge of both syntax mechanics and higher level architectural best practices. I‘m hopeful this deep dive has provided helpful holistic context into …

  10. JavaScript Modules - Programiz

    In this tutorial, you will learn about modules in JavaScript with the help of examples.