Basic Node and Express - Use the .env File

Tell us what’s happening:
My tests are not passing although my json link has the phrase all caps. Any help would be appreciated on what is going on here thanks.

Your project link(s)

solution: boilerplate-express - Node.js Repl - Replit

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:

The environment variable has to be evaluated inside the route handler (because of how it is tested).

Then, in the /json GET route handler you created in the last challenge access process.env.MESSAGE_STYLE and transform the response object’s message to uppercase if the variable equals uppercase .

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