Tell us what’s happening:
Why my code doesn’t pass this challenge? I checked on browser and it works… #6 use the .env file
app.get(‘/json’, (req,res) =>{
if (process.env.MESSAGE_STYLE === “uppercase”)
{
res.json({message: “Hello json”.toUpperCase()});
}
else{
res.json({message: “Hello json”});
}
})
###Your project link(s)
solution: https://3000-freecodecam-boilerplate-cc2m3nhen1p.ws-us117.gitpod.io
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Use the .env File