Skip to content

Instantly share code, notes, and snippets.

View long-kr's full-sized avatar

long-kr

View GitHub Profile
function gradeQuiz(studentAnswers, teacherAnswers){
let match = 0;
for(let i = 0; i < studentAnswers.length; i++ ){
if(studentAnswers[i] == teacherAnswers[i])
match++;
}
return match;
}