Node.js - HTTP Module
What will the following Express code send to the client?
app.get('/test', (req, res) => {
res.status(201).send('Created');
});app.get('/test', (req, res) => {
res.status(201).send('Created');
});res.status(201) sets status code 201 (Created), then send('Created') sends that text as the response body.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions