Complete the code to import the module correctly.
const fs = require([1]);In Node.js, to use a built-in module like fs, you must require it by its name as a string.
Complete the code to export a function from a module.
module.exports = [1];To export a function, assign the function itself (not a call or string) to module.exports.
Fix the error in importing a custom module.
const utils = require([1]);When importing a local module, you must use a relative path starting with ./ or ../.
Fill both blanks to create a module that exports an object with two functions.
module.exports = { [1]: function() {}, [2]: () => {} };We export an object with keys naming the functions. Here, start and stop are function names.
Fill all three blanks to import a module, call a function, and log the result.
const [1] = require('[2]'); const result = [3].calculate(); console.log(result);
We import the module as mathUtils from 'math-utils', then call mathUtils.calculate().
