Information Security Projects - Stock Price Checker

Tell us what’s happening:

I have passed all the tests except The stock data property includes the stock symbol as a string, the price as a number, and likes as a number. I’m struggling there i am sure that the symbol is a string and the price and the likes also are numbers , github : GitHub - Aziz-souli/Stock-Price-Checker

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-gzlyixg5ncg.ws-eu116.gitpod.io

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Information Security Projects - Stock Price Checker

The property you are asked to use for the response is stock, not symbol. The stock property contains a string which is the symbol.

Look at the example response in the demo

{"stockData":{"stock":"GOOG","price":786.90,"likes":1}}

Edit: Do not put your connection string in the sample.env. That file is used when you share configuration examples with fake data. It is not meant for your actual sensitive configuration data.

Create a .env file and use that. Then create a .gitignore file and add the .env file along with the node_modules folder to it so you do not commit/push any of that.

https://git-scm.com/docs/gitignore

1 Like

thanks for you help !