Tell us what’s happening:
This is my code :
.env
MESSAGE_STYLE=uppercase
myApp.js
app.get(’/json’, function(req, res){
if(process.env.MESSAGE_STYLE === "uppercase")
res.json({"message": "HELLO JSON"})
else
res.json({"message": "Hello json"})
})
Where is the error?
Challenge: Use the .env File
Link to the challenge: