Tell us what’s happening:
i dont know what the test wants please help me find it out
###Your project link(s)
solution: https://3000-freecodecam-boilerplate-ea41u6u4rjv.ws-eu117.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
require('dotenv').config();
let express = require('express');
let app = express();
var resp ="Hello json"
app.get("/json", (req, res)=>{
if (process.env.MESSAGE_STYLE === "uppercase") {
response = "Hello json".toUpperCase();
} else {
response = "Hello json";
}
res.json({
"message": response
})
});
that’s my code
Teller
3
Welcome back to the forum @emmanuel111
Did you save the variable in the .env
file?
Happy coding