Tell us what’s happening:
I’m struggling to make this work since this is my first time using Replit. I saw the note on the challenge that if we’re using Replit, we have to create the MESSAGE_STYLE=uppercase .env variable on the SECRETS tab. I really don’t know what I should be deleting from the past challenges to make this work.
I think I’ve finally found the SECRETS tab. Is this how I’m supposed to set up and insert the variable into my code?

Your code so far
let express = require('express');
let app = express();
console.log("Hello World")
const mySecret = process.env['MESSAGE_STYLE']
//app.get("/", function(req, res) {res.send("Hello Express");});
app.get("/", function(req, res) {
res.sendFile(__dirname + "/views/index.html");
});
app.use("/public", express.static(__dirname + "/public"));
app.get("/json", (req, res) => {
res.json({if (mySecret === "uppercase") {
"message": "Hello json".toUpperCase();
} else {
"message": "Hello json";
}
});
});
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Basic Node and Express - Use the .env File
Link to the challenge: