Basic Node and Express - Use the .env File

Tell us what’s happening:

Hi, I am running this challenge locally, while I am not sure where went wrong. Could someone take a look?

Thank you!

Your project link(s)


solution: http://localhost:3000

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

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

Link to the challenge:

Hey! Try assigning the value in the .env file as a string. It could be useful anyway to see your output or error as well

Thank you. But my code is still not working. I was also trying to debug and below are some screenshots. Looks like the if statement in the app.get() just doesn’t work.

Advice is appreciated!



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