Information Security Projects - Stock Price Checker

Hello everyone,

I’m facing an issue with a specific test case in the Stock Price Checker Project

I’m getting data that looks right, but the test isn’t passing.

Can someone help with this? I’m also looking for feedback on my code and what’s the best way to do things.

solution: boilerplate-project-stockchecker - 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: Information Security Projects - Stock Price Checker

Link to the challenge:

At first, I returned an array for one stock, but the rules wanted a single item for one stock and an array for two stocks under ‘stockData.’ So, I changed the code to make ‘stockData’ either a single item or an array, depending on the request. This fixed the problem.

updated response

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