Stuck in .env file challenge

Tell us what’s happening:
Hello, I am stuck in use the .env file challenge. Tried many times, but it is not working. I tried doing it according to the given hint with the challenge itself. but that doesn’t seem to work. What is the right format of writing it? Help please.
thank you all.
Your code so far

Your browser information:

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

Challenge: Use the .env File

Link to the challenge:

Welcome, there.

There is a known issue with a few lessons in this section: Use the .env File - Issue - freeCodeCamp Support - The freeCodeCamp Forum

Otherwise, we cannot tell what is wrong, without being able to see your code. Typically, it is easiest for you to share the link to your project code. Otherwise, you can use Markdown to format your code here, in the forum.

Thank you, for linking that. There is an issue here:

app.get("/json", (req, res) => {
if (process.env.MESSAGE_STYLE === uppercase) {
  response = "Hello json".toUpperCase();
} else {
  response = "Hello json";

That code is not actually responding with anything. So, this is not being done:

The response object should become {"message": "HELLO JSON"}

Hope this clarifies

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.