Basic Node and Express - Use the .env File

Tell us what’s happening:
The automatic tests are failing even though the code used is correct, it’s using the method required and it’s outputting the expected response.

I’m using repl if that makes any difference. This is the link:

Your code so far
const mySecret = process.env[‘MESSAGE_STYLE’]
let response = “Hello json”.toUpperCase()
if (mySecret === “uppercase”) {
response = “Hello json”.toUpperCase();
} else {
response = “Hello json”;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic Node and Express - Use the .env File

Link to the challenge:

What url are you submitting?

Where did you put this code?

And the code is going into the repl compiler.

I can’t actually see the code from that link, but that link is working fine for me

Alright thank you I’ll figure something out.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.