I am unable to pass the test cases for this challenge.
Below is the code:
app.get(“/:word/echo”, (req, res) => {
const { word } = req.params;
res.json({echo : word});
});
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Basic Node and Express - Get Route Parameter Input from the Client
Link to the challenge: