HomeTracks
Explorer···
THEEBUG
Completed0/6
Score0
JSlesson1.js×
THEEBUGlesson1.js
1
function greet(name) {
2
return `Hello, ${name}!`;
3
}
4
 
5
module.exports = ______;
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
greet
greet()
"greet"
module
Game Panel
0:000 pts
Level 1 of 6CommonJS Modules
0/1 slots correct
Objective
Export the greet function so another file can require() and use it
Expected Output
Hello, Ada!
Debug says:
Every Node.js file is its own module — nothing inside it is visible to other files unless you explicitly export it. Which block correctly exports the greet function itself?
Debug the Worm