Error with .env problem

Tell us what’s happening:

app.get(’/json’, (req, res) => {
let response = “Hello json”;

if(process.env.MESSAGE_STYLE == ‘uppercase’) {

  res.json({"message": response.toUpperCase()})

}
res.json({“message”: response})
})

Your project link(s)

solution: https://boilerplate-express.ardasher.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36.

Challenge: Use the .env File

Link to the challenge: