In the following Express function:
app.get('/user/:id', function(req, res){
res.send('user' + req.params.id);
});
What are req
and res
? What do they stand for, what do they mean, and what do they do?
Thanks!
In the following Express function:
app.get('/user/:id', function(req, res){
res.send('user' + req.params.id);
});
What are req
and res
? What do they stand for, what do they mean, and what do they do?
Thanks!