Tell us what’s happening:
kindly assist me on this challenge. it is not passing
Your code so far*
app.get("/json", (req, res)=>{
if(process.env.MESSSAGE_STYLE ==="uppercase"){
return res.json({
message: "Hello json".toUpperCase()
});
}else{
return res.json({
message:"Hello json"
})
}
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
.
Challenge: undefined
Link to the challenge:
https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/use-the-.env-file