Tell us what’s happening:
My solution to this challenge is not working. So can someone tell me the correct solution to this challenge.
Your code so far
https://boilerplate-express.sasuke417.repl.co
let message={message:“Hello json”};
app.get("/json",(request,response)=>{
if (process.env.MESSAGE_STYLE === “uppercase”) {
response.json({“message”: “HELLO JSON”})
} else {
response.json({message})
}
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
.
Challenge: Use the .env File
Link to the challenge: