Skip to content
How can I loop my quiz answers to get a final score
Profile icon

So far I have declared the canidates name, canidates response, correct response, and created an input.question for questions 1-5. Now i am wanting to loop the answerKey to give a percentage result, but I am not sure how to make the system read the correct answers as numbers instead of strings. I want my final output to be let score='';
and have it read a percentage for the overall grade of the quiz. Can someone help me out with this?

You are viewing a single comment. View All
Profile icon

No problem! Could you mark my answer as correct? Thanks!