Shadi A.#7
Conversation
This comment has been minimized.
This comment has been minimized.
JQnetherlands
left a comment
There was a problem hiding this comment.
Hello Shadi
Congratulation, you passed successfully the Project, be proud of yourself.
You’ve done a great job structuring your project and showing a solid understanding of object-oriented programming. The use of separate Question and Answer classes is clear and well thought out, and your quiz flow is easy to follow. I also like the user experience touches, such as allowing the user to exit early and providing colored feedback using chalk. These details make the application feel more complete and user-friendly.
At the same time, there are some important issues with the AI integration. The JSON format requested in your prompt is not valid, which can lead to errors when using JSON.parse. This makes the application unreliable, as it may crash if the AI response does not match the expected structure. Additionally, there is no error handling around the parsing step or the API response, which increases the risk of runtime failures. These are key areas to improve, especially when working with external APIs.
Overall, this is a strong project with a good foundation and thoughtful design. To improve it further, focus on making the AI response format valid and consistent, and add proper error handling when working with API data. With these changes, your application would become much more robust and production-ready.
Overall you did an amazing job showing you doing understand Classes, Bravo!
I wish you a success in every step from now on in your career!
…e in fetchQuestions function
📝 HackYourFuture auto gradeAssignment Score: 0 / 100 ✅Status: ✅ Passed Test Details |
Complete Tasks for week 11.