T8 Node.js · Lesson 2
Games: Modules
Choose the right option, fill in the blanks, write small pieces of code and fix broken ones. Code runs in a safe box inside this page.
Solved 0 of 45 items in this lesson.
1 / 21
This runs in the shop's folder, /home/asha/shop. What does it print?
cat > gauge.js <<'END'
const secret = 1;
END
cat > app.js <<'END'
require("./gauge");
console.log(typeof secret);
END
node app.js