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

    May 23, 2025 · The export declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the import declaration or …

  2. JavaScript Modules - W3Schools

    Export. Modules with functions or variables can be stored in any external file. There are two types of exports: Named Exports and Default Exports.

  3. module.exports – How to Export in Node.js and JavaScript

    Apr 25, 2022 · module.exports is an object in a Node.js file that holds the exported values and functions from that module. Declaring a module.exports object in a file specifies the values to …

  4. Export and Import - The Modern JavaScript Tutorial

    Jan 18, 2023 · Modules provide a special export default (“the default export”) syntax to make the “one thing per module” way look better. Put export default before the entity to export: // 📁 user.js …

  5. javascript - What is the purpose of Node.js module.exports and …

    May 22, 2012 · module.exports is the object that's actually returned as the result of a require call. The exports variable is initially set to that same object (i.e. it's a shorthand "alias"), so in the …

  6. Node Export Module - GeeksforGeeks

    Apr 23, 2025 · In NodeJS, you can export a function from one module (file) so that it can be used in another module. This is done using module.exports. By exporting a function, you allow other …

  7. JavaScript Export

    Use JavaScript export keyword to export variables, functions, and classes from a module. Exports can be named exports and default exports. A module can have multiple named exports but …

  8. Understanding Modules and Import and Export Statements in JavaScript

    Aug 27, 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, …

  9. JavaScript Export - Managing Module Exports - ZetCode

    Apr 16, 2025 · Understand how to use the export keyword in JavaScript for managing module exports, with examples and explanations.

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

    May 23, 2025 · A more convenient way of exporting all the items you want to export is to use a single export statement at the end of your module file, followed by a comma-separated list of …

  11. Some results have been removed
Refresh