Https://boilerplate-express-1.geoelycom.repl.co

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:

Hello @geolycom,

I see two issues here.

First, take a look at your “response” variable. Where do you declare it?
Then think about how do you return the data to the browser(or send API response back) and at what stage you should run your if-else statement.