Basic Node and Express - Get Query Parameter Input from the Client

Tell us what’s happening:

Can someone please tell me what is wrong with this code?

Your code so far

app.route('/name').get(function(req, res){
  var firstName = req.query.first;
  var lastName = req.query.last;
  res.json({name: firstName + " " + lastName});  
  console.log(name);
}).post();

Your browser information:

Link to the challenge: