About 15,400 results
Open links in new tab
  1. JavaScript Modules - W3Schools

    Modules let you break down large codebases into small self-contained files, each focused on a specific task. Modules are essential for large and complex applications.

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

    Nov 3, 2025 · These examples demonstrate a set of modules that create a <canvas> element on a webpage, and then draw (and report information about) different shapes on the canvas. These are …

  3. JavaScript ModulesHow to Create, Import, and Export a Module

    Feb 28, 2023 · This article has covered the basics of defining, exporting, and importing modules in JavaScript, including default exports, named exports, renaming exports, and importing entire modules.

  4. How to Create a JavaScript Module (Beginner-Friendly)

    Jul 4, 2025 · Learn how to create your own JavaScript module using real-world examples. Perfect for beginners looking to write cleaner, modular, and reusable frontend code.

  5. JavaScript Modules - GeeksforGeeks

    Jul 31, 2025 · This code showcases how to use JavaScript modules to define and import a function across different files. The greet function is defined in one file and used in another to demonstrate …

  6. JavaScript ModulesHow to Create, Import, and Export a Module

    Aug 30, 2024 · JavaScript modules continue to grow in adoption across frameworks like React and Vue as well. I hope this guide gave you a deep dive into writing modular JavaScript code.

  7. How to Organise JavaScript Code with Modules: A Practical Guide

    Oct 23, 2024 · Modules are self-contained pieces of code that encapsulate specific functionalities, variables, and methods. They enable developers to break down applications into manageable parts, …

  8. 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: …

  9. Creating and Importing Modules in JavaScript - useful.codes

    In the world of JavaScript development, mastering modules is essential for building scalable and maintainable applications. You can get training on this article as we explore the intricacies of creating …

  10. JavaScript Modules: A Comprehensive Tutorial

    Oct 7, 2024 · This tutorial will cover how to use JavaScript modules with examples, including how to create modules, use the export and import statements, and work with default exports.