Tell us what’s happening:
I am working on the " Basic Node and Express - Use the .env File" exercise I tried my code also tried codes from the Forum as well nobody solutions is working also tried from youtube videos of Florin Pop here is link of his solutions :"
Conquering freeCodeCamp - Basic Node and Express - Live Stream #42
Test cases is not passed showing me error like this :
Your code so far
My code is:
app.get('/json',(req,res)=>{
const message = (process.env.MESSAGE_STYLE === 'uppercase') ? 'HELLO JSON' : 'Hello json';
res.json({
message});
})
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
.
Challenge: Use the .env File
Link to the challenge: