Tell us what’s happening:
Describe your issue in detail here.
i cannot understand why is it not being validated by the test correctly? below is my snippet:
let express = require('express');
let app = express();
const msgStyle = process.env.MESSAGE_STYLE;
app.use(express.static( __dirname + "public"));
app.get('/',function(req,res){
res.send(__dirname + "/views/index.html");
});
app.get("/json", (req, res) => {
var response
if(process.env.MESSAGE_STYLE === "uppercase"){
response = "Hello json".toUpperCase();
} else {
response = "Hello json";
}
res.json({
"message": response
});
});
i am using replit dot com for this so i suppose the link would not be working if you test it but it is still indicated below
Your project link(s)
solution: https://boilerplate-npm--ian-luigiluigi1.repl.co
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Challenge: Basic Node and Express - Use the .env File
Link to the challenge: