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/ 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!