Tell us what’s happening:
I have created a local.env file with code:
MESSAGE_STYLE=“uppercase”;
var express = require(‘express’);
var app = express();
console.log(“Hello World”);
// --> 7) Mount the Logger middleware here
Hmm, weird. I cloned your app and it’s working for me (links below). But I agree it’s not the quotes around “uppercase”; that doesn’t seem to make a difference. I noticed you have a duplicate route on line 10 that may be contributing to the problem. I noticed a few times it would return lowercase first then uppercase shortly after.
I’m thinking it must have something to do with your .env file. I just cloned your app again, added the .env file, and it worked.
I noticed you have a local.env file. The file should be just .env, and once you create it, Glitch will put a little ‘key’ icon next to it to indicate it’s private. (Also, semicolons aren’t necessary in the .env file). It should look like this:
I’m having this same problem. When I removed the quotes from my challenge and when I visited it, it says uppercase not defined. If I add the qoutes it doesn’t change to the Json object to uppercase hence the challenge won’t pass. I need help