Basic Node and Express - Use the .env File

Tell us what’s happening:

Unable to proceed further despite code working fine as per the requirement below is the code
require(‘dotenv’).config();
let express = require(‘express’);
let app = express();
app.use(‘/public’,express.static(__dirname + ‘/public’));
app.get(“/”, function(req, res) {
res.sendFile(__dirname + ‘/views/index.html’);
});
app.get(“/json”,(req,res)=>{
var response = “Hello World”;
if (process.env.MESSAGE_STYLE===“uppercase”) {
response = “Hello World”.toUpperCase();
} else {
respon

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-i2h1hsc1vyy.ws-us116.gitpod.io

Your browser information:

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

Challenge Information:

Basic Node and Express - Use the .env File

Hi there and welcome to our community!

As per the challenge instructions:

The response object should either be {"message": "Hello json"} or {"message": "HELLO JSON"}

You are not returning the required message. Note also that the capitalisation of the text should match exactly, in either case.