🎯 What you'll practice: Express routes, middleware, and CRUD with proper status codes.
1-B 2-C 3-B 4-B | 5 = 404 6 = body 7 = app.get('/api/courses/:id',(req,res)=>{const c=courses.find(x=>x.id===Number(req.params.id));if(!c)return res.status(404).json({error:'Not found'});res.json(c);}); 8 = app.delete('/api/courses/:id',(req,res)=>{courses=courses.filter(x=>x.id!==Number(req.params.id));res.status(204).send();}); 9 = Because Express doesn't parse the request body by default — express.json() middleware reads the raw incoming stream and populates req.body before any route handler runs | 10 = GET /api/notes (list), GET /api/notes/:id (one), POST /api/notes (create, 201), PUT /api/notes/:id (update), DELETE /api/notes/:id (delete, 204) — each following the same array find/filter pattern as the course example.