Module Maze · Level 3 of 8

exports = {} goes nowhere

Two modules try to export { x: 1 }. One of them gets it wrong.

main.cjs
const good = require('./good.cjs');const bad = require('./bad.cjs');console.log('good:', good);console.log('bad:', bad);
good.cjs 1 lines
module.exports = { x: 1 };
bad.cjs 1 lines
exports = { x: 1 };

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…