Tell us what’s happening:
Hi. I copied the answer of this task( Basic Node and Express - Get Route Parameter Input from the Client) but test was not correct. What 's wrong?
Your code so far
var express = require(“express”);
var app = express();
//process.env.MESSAGE_STYLE=“uppercase”;
app.get("/:word/echo", (req, res) => {
const { word } = req.params;
res.json({
echo: word
});
});
module.exports = app;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36
.