Basic Node and Express - Use the .env File

My test is not passing. The response changes with the MESSAGE_STYLE value.

https://boilerplate-express-1.khyatikhaitan.repl.co

I use Google Chrome

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

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

Link to the challenge:

{"message":"HELLO WORLD"}

This is the response I get from your /json endpoint. This is not the response required by the challenge.

I have rectified this error but still not able to pass the test.

Pls post the code or share a link to the repl

https://boilerplate-express-1.khyatikhaitan.repl.co
This is the link to the code.

That link doesn’t show me the code.

That is the live link to your project. The link to your code is the url in your address bar when you’re in your repl, which in this case is: https://replit.com/@khyatikhaitan/boilerplate-express-1

This is not the correct response if the message is not ‘uppercase’:

{ message: "Hello Json" }

Thanks for finding the mistake. I corrected the output value and now it is working.

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