Created
February 15, 2022 22:59
-
-
Save long-kr/09e1e90dee1ce8299f417af04c145f63 to your computer and use it in GitHub Desktop.
check grade basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gradeQuiz(studentAnswers, teacherAnswers){ | |
let match = 0; | |
for(let i = 0; i < studentAnswers.length; i++ ){ | |
if(studentAnswers[i] == teacherAnswers[i]) | |
match++; | |
} | |
return match; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment