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

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:

hello and welcome to fcc forum :slight_smile:

i dont see what could be wrong with this snippet, btw, what output do you get from this url: “your-app-rootpath/freecodecamp/echo”

maybe sandbox environment for it would be helpful for others to help, happy learning :slight_smile: