Tell us what’s happening:
I don’t know why I am not passing the test.
please can you lads help me find out what I am missing here
Your code so far
var express = require(‘express’);
var app = express();
app.get("/json", (req, res) => {
res.json({
“message”: “Hello json”
});
if (process.env.MESSAGE_STYLE === “uppercase”) {
response = “Hello World”.toUpperCase();
} else {
response = “Hello World”;
}
});
module.exports = app;
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: Use the .env File
Link to the challenge: