Test fails even though code looks correct

Tell us what’s happening:
I modified endpoint to toggle the case. Created a .env file

Your code so far
.env

MESSAGE_STYLE=uppercase

myApp.js

app.get("/json", function(req,res){
  console.log(process.env.MESSAGE_STYLE || "undefined");
  let message = "Hello Json";
  if(process.env.MESSAGE_STYLE == "uppercase")
  {
    message = message.toUpperCase();
  }
  console.log(message);
  let response = {"message":message};
  console.log(response);
  res.json(response);
  
});

Result from logs

*
undefined
Hello Json
{ message: 'Hello Json' }
*
uppercase
HELLO JSON
{ message: 'HELLO JSON' }

Your browser information:

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

Challenge: Use the .env File

Link to the challenge:

If I remember correctly in first message Json should be all lowercase.

That still didn’t do it.

app.get("/json", function(req,res){
  console.log(process.env.MESSAGE_STYLE || "undefined");
  let message = "hello json";
  if(process.env.MESSAGE_STYLE == "uppercase")
  {
    message = message.toUpperCase();
  }
  console.log(message);
  let response = {"message":message};
  console.log(response);
  res.json(response);
  
});

log

undefined
hello json
{ message: 'hello json' }
*
uppercase
HELLO JSON

No, I mean only the word json should be lowercase: “Hello json”.

Hello there,

@jenovs is correct, here is the instructions from the previous lesson:

Serve the object {"message": "Hello json"} as a response, in JSON format, to GET requests to the /json route.

Also, it would be easier to debug, if you would provide us with a link to your project, please.

Making it Hello json fixed it. thanks