約120件1ページ目

日本語のみで絞り込む

2013/5/19 -What I'm trying to achieve is to create one module that contains multiple functions in it. module.js: module.exports = function( ...

In today's video, I'll be taking you through how to export (or import) multiple functions using JavaScript modules.

YouTubedcode

Exporting Multiple Functions¶. practiceExports.js contains three functions, and to export all of them we use a different syntax for module.exports . Instead ...

2018/5/11 -You're trying to set module.exports to two different values. What you want to do is instead export an object with your two functions as props:

2026/10/19 -How to work with modules in Node.js how to export and consume them, and explaining the difference between module.exports and exports.

5日前 -Every module can have two different types of export, named export and default export. You can have multiple named exports per module but only ...

2018/7/24 -Which one is a better approach to setting up variables in NodeJS? (faster, easier to maintain, not an antipattern).

2024/6/18 -Another way to export multiple values is to add each value to the exports object individually. This is more concise and allows for selective ...

2025/9/29 -First, define and export multiple functions from a file called “basic arithmetics.js: ... Create a module that exports multiple constants ...

2020/11/11 -To export multiple functions from a JavaScript file, you use a named export: list the functions in curly braces after the export keyword. Other ...