HomeTracks
Explorer···
THEEBUG
Completed0/6
Score0
JSlesson4.js×
THEEBUGlesson4.js
1
const http = require("http");
2
 
3
const server = http.createServer((req, res) => {
4
res.end("Hello from Node!");
5
});
6
 
7
server.______(3000, () => {
8
console.log("Server running on port 3000");
9
});
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
listen
start
run
open
Game Panel
0:000 pts
Level 4 of 6Creating an HTTP Server
0/1 slots correct
Objective
Start the server listening on port 3000
Expected Output
Server running on port 3000
Debug says:
http.createServer() just builds the server object — it doesn't actually start accepting connections until you tell it which port to bind to. Which method starts it listening?
Debug the Worm