Who who help check this please?
It keep on saying The response of the endpoint /json should change according to the environment variable MESSAGE_STYLE even after I have tried over and over .
app.get("/json", function handler(req, res) {
// res.json({ "message": "Hello json" })
if (process.env.MESSAGE_STYLE === "uppercase") {
res.json({
message: "Hello json".toUpperCase()
})
} else {
res.json({
message: "Hello json"
})
}
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Use the .env File

