Tell us what’s happening:
On the Node/Express challenge re: creating an echo server (using route paramter input), I had a working version, which would not pass tests even though it would properly echo, then went so far as to cut-and-paste the given solution, still not passing tests. Any suggestions or observations?
Your code so far
app.get("/:word/echo", (req, res) => {
const { word } = req.params;
res.json({
echo: word
});
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
.
Challenge: Get Route Parameter Input from the Client
Link to the challenge: