Hi, I doing this challenge and I keep getting the following message when I run the code:
// running tests
Test 2: “GET /name” route does not behave as expected
Test 1: “GET /name” route does not behave as expected
// tests completed
Below is my code. Please help.
app.get("/name", function(req, res) {
var firstName = req.query.first;
var lastName = req.query.last;
var jsonObj = {name: 'firstName lastName'};
res.send(jsonObj);
});