I don’t know, what to do, I wrote what challenge asked and it seems to work, but I can’t pass the tests.
Here is the code from myApp.js:
var express = require('express');
var app = express();
app.get("/json", (req, res)=>{
let message = "Hello Json"
res.json({"Message": process.env.MESSAGE_STYLE == "uppercase" ? message.toUpperCase() : message})
})
module.exports = app;
and from .env file:
MESSAGE_STYLE=uppercase
Challenge: Use the .env File
Link to the challenge: