Basic Node and Express - Use the .env File

Tell us what’s happening:
Describe your issue in detail here.

OK the test is just yelling at me saying im wrong, when i can test it on my own browser and have the capitals of the json message change depending on the env value, but apparently my code don’t pass the test. dont mention the screaming in the console.log alr tysm.

Your project link(s)

solution: boilerplate-express - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

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

Link to the challenge:

The assignment instruction says:

The response object should either be {"message": "Hello json"} or {"message": "HELLO JSON"} , depending on the MESSAGE_STYLE value.

You are creating the response with this string:

let oldResponce = "Hello World"

See the difference in the response text words.

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