Tell us what’s happening:
Hi! I am doing this exercise and the JSON response becomes uppercase as aspected but I don’t know why the test doesn’t pass. Can you check why is it wrong? Am I doing it wrong? I checked also the solution but I don’t get why it doesn’t pass
app.get("/json", (req, res)=>{
if (process.env.MESSAGE_STYLE==="uppercase"){
var response = "Hello json".toUpperCase();
res.json({"message": response});
} else {
var response = "Hello json";
res.json({"message": response});
}
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.