Node.js Code Reorder Medium +20 XP
Express Setup
Arrange the Express server setup.
Click lines in the correct order
Available lines4 left
Your order
Click lines above to build your solution.
Show answer and explanation
Answer: const express = require("express");
const app = express();
app.use(express.json());
app.listen(3000);
Import, create app, add middleware, then start listening.
Hint: Require before using, listen last.
What this challenge tests
Code Reorder in Node.js: express, setup.