HomeTracks
Explorer···
THEEBUG
Completed0/6
Score0
JSlesson6.js×
THEEBUGlesson6.js
1
const express = require("express");
2
const app = express();
3
 
4
app.______("/users", (req, res) => {
5
res.json(["Ada", "Bo"]);
6
});
7
 
8
app.listen(3000);
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
get
post
route
listen
Game Panel
0:000 pts
Level 6 of 6Basic Express Routing
0/1 slots correct
Objective
Register a GET route for /users using Express's routing method
Expected Output
["Ada", "Bo"]
Debug says:
Express is the near-universal framework for building Node servers — it replaces one giant createServer callback with a method per HTTP verb, per path. Which method registers a handler for a GET request?
Debug the Worm