Express + Node: Use The .env File (Broken Tester)

Tell us what’s happening:
its not passing the test, ive refactored it around 10times putting if else and terrnarys any way i can think of and its not passing, kinda fed up as they all work!!!

edit:ive also created a .env file and made a variable MESSAGE_STYLE=uppercase

Your code so far

// Use the .env file to configure the app 
let message = "Hello Json"
app.get('/json', (req, res) => {
process.env.MESSAGE_STYLE==="uppercase" ? 
  message = message.toUpperCase() :
  message = message
  res.json({"message":message})
})

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0.

Challenge: undefined

Link to the challenge:
https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/use-the-.env-file

hi, thanks for the response, if the typo your refering to is the capital J on json every time ive tested it ive tried it with both capital and non capital just cause im used to things not passing for stupid reasons.

im not sure what the real differnce in tenary and if/else statements is one time i was just refered to them as shorthand for if/else statments so i use them just cause it looks nicer to me.

i’ve went back to the previous challenge and i passed it straght away i cant see the typo
im testing by going to the /json url and checking then changing the variable inside .env and checking again and it is doing what its ment to do
the first hour of work 2day was really enjoyable however ive spent 4hours on this and i really dont understand, im doing what it is asking me 2 do in the question it should say either “HELLO JSON” or “Hello json”
Here is 2 more atempts:

 let message = "Hello json"
 app.get('/json', (req, res) => {
 
   if (process.env.MESSAGE_STYLE==="uppercase") { 
   message = message.toUpperCase()
   } else {
   message = message
   }
    res.json({"message":message})
 })
 app.get('/json', (req, res) => { 
   if (process.env.MESSAGE_STYLE==="uppercase") { 
   res.json({"message":"Hello jSON"})
   } else {
   res.json({"message":"Hello json"})
   }
 })

Hi:)
I got it to work i actually just left it due to life commitments and started again and it worked so was probs somin silly mixed with me gettin a lil too frustated.
i would love to see some use cases for ternary expressions whenever you have time. Any help getting better is always welcomed thanks!