About 251,000 results
Open links in new tab
  1. import - JavaScript | MDN - MDN Web Docs

    Apr 3, 2025 · In order to use the import declaration in a source file, the file must be interpreted by the runtime as a module. In HTML, this is done by adding type="module" to the <script> tag. …

  2. JavaScript Modules - W3Schools

    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 statement. …

  3. JavaScript Import

    In this tutorial, you will learn how to use the JavaScript import keyword to import variables, functions, and classes from another module.

  4. Export and Import - The Modern JavaScript Tutorial

    Jan 18, 2023 · Export and import directives have several syntax variants. In the previous article we saw a simple use, now let’s explore more examples. We can label any declaration as …

  5. JavaScript Import - Managing Module Imports - ZetCode

    Apr 16, 2025 · In this article we show how to import modules using the import keyword in JavaScript. The import statement is used to import bindings from other modules. The import …

  6. JavaScript: Export and Import Essentials - W3docs

    The 'import' keyword imports functions, objects or values into your JavaScript file from another with a relative file path. The default export can be a function, a class or an object. In the case …

  7. Understanding Modules and Import and Export Statements in JavaScript

    Aug 28, 2021 · In this tutorial, you will learn what a JavaScript module is and how to use import and export to organize your code. Before the concept of modules appeared in JavaScript, …

  8. Understanding JavaScript import and export (ESM syntax)

    Oct 19, 2020 · The import and export statements are one of the most crucial features of JavaScript ES6. Also known as the EcmaScript Modules (ESM) syntax, it allows you to import …

  9. ES6 Import and Export - GeeksforGeeks

    Jan 3, 2023 · Import: You can import a variable using import keyword. You can specify one of all the members that you want to import from a JavaScript file. Syntax: import member_to_import …

  10. JavaScript Modules: import and export Explained - Medium

    Jan 21, 2025 · Importing in JavaScript. The import keyword allows you to bring in functionality from other modules. Here’s a breakdown of its features and usage. Importing Named Exports