約88,600件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 5日前 -The export declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the import ...

    2026/10/19 -exports and exports both serve the same purpose of exporting values from a module. exports is essentially a reference to module.exports , so you can use either.

    5日前 -module.exports is the value a CommonJS file hands to whoever calls require() on it. exports is a shortcut that points to the same object, until you reassign ...

    Description In this video, you'll learn JavaScript Modules (Import & Export), one of the most important ES6 features used in modern JavaScript ...

    YouTubeProgramming with Harsh

    2026/10/1 -Use module.exports in Node.js to define which functions and variables a CommonJS module exposes when imported with require(), enabling encapsulation.

    2026/9/24 -Exports allow you to share functions, classes, variables, and other declarations between modules in JavaScript and TypeScript. frame_3985.

    A.こちらはnode.jsなので https://mindcat.hatenadiary.org/entry/20110821/1313946427 こちらのやり方はどうでしょうか?

    A.defaultでエクスポートしたモジュールは 他のファイルにインポートする際任意の名前でインポートできます。 モジュールファイルの中から 特定のモジュールをインポートしたい場合は expor...

    2026/6/24 -Its a little different in CJS since it is effectively a function scope and uses require() instead of import/export for accessing definitions in other files.

    2026/7/15 -Named vs Default Exports ; const PI = 3.14159 · export ; function multiply(a, b) · return ; // Default export - only one per module export default function ...

    2026/10/11 -Learn CommonJS: require(), module.exports, exports shortcut, and a small interop taste with ESM. A free interactive JavaScript Academy lesson with hands-o…

    1日前 -The names for each variable have to match between the exporter and the importer. You can write functional module code using just named imports and exports.