Can't get correct response in JSON

Tell us what’s happening:
I cannot get a response “HELLO JSON”
My enviroment file

MESSAGE_STYLE=uppercase

Your code so far

   app.get("/json", function(req, res) {
  if(process.env.MESSAGE_STYLE === "uppercase") {
       res.json({"message": "HELLO JSON"})
    } else {
      res.json({"message": "Hello json"})

    } 
})

image

Challenge: Use the .env File

Link to the challenge:

The filename should be .env not environment.env.

2 Likes