Can someone help me figure out what I need to do? This is what I thought would work but I am only passing the second test for this problem:
app.get('/name', (req, res) => {
var { name } = req.query;
if (name === '?first=Mick&last=Jagger') {
res.json({ "name": "Mick Jagger" });
} else {
res.json({ "name": "Keith Richards" });
}
});