Tell us what’s happening:
app.get(‘/json’, (req, res) => {
var message =“”;
if (process.env.MESSAGE_STYLE === “uppercase”) {
message = “Hello json”.toUpperCase();
}else{
message = “Hello json”;
}
res.json({ message: message});
});
###Your project link(s)
solution: http://localhost:3000/json
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Use the .env File