JavaScript quiz app skiping questions and during the 3rd question it is giving a "Cannot read property 'correct' of undefined" error message

@Code001 usually the browser throws this error message when you pass an argument to a function is incompatible with the type expected by that particular function. So I would suggest checking the functions and the arguments that you have used in your project.

1 Like

I just reloaded the project and somehow it is just working perfectly fine not sure why the error was showing and not sure how it was fixed lol but thank you for taking the time to respond to the request.

1 Like

It would help if we can see the actual code and not an image.

Anyway, if it sometimes works and sometimes doesn’t it might also just be an issue with the index (currectQuest) you are incrementing (maybe it goes out of bounds).

1 Like