The challenge you linked at the bottom of your post has nothing to do with the code you wrote above. I will assume you meant the Use the .env File challenge.
If so, since you are using Replit, then according to the instructions, you will need to use the Secrets tab to add a variable named MESSAGE_STYLE and assign the value uppercase.
Once that is done, inside the /json GET route handler created in the previous challenge, you need to make use of the variable, by referencing process.env.MESSAGE_STYLE and then return the correct response (a JSON response you should have already learned how to do from the previous challenge).
With your current code, you are checking to see if an environment variable named VAR_NAME is strictly equal to the string allCaps, but that is not the correct environment variable name or the value you are supposed to be comparing its value against (per instructions).
The instructions are very clear about the JSON response that should be returned. It involves sending back an object with a property named message and a value of either "Hello json" or "HELLO JSON". Currently, your code is not returning any kind of response. It does appear you have tried to assign the string "HELLO WORLD" or "Hello World" to a variable named response, but that is no where close to what the instructions have told you to do.
Try to rewrite the correct code this time and let us know if you are successful or not.
Have you gone through the entire JavaScript Algorithms and Data Structures part of the curriculum yet? If not, I strongly advise you do that before starting the NodeJS challenges.
I was able to figure out the issue to this level and now i got {“message”:“HELLO JSON”} as the output as instructed by fcc but
my code above still fails the fcc test .
counting on your reply ,thank you