\n \n \n \n ";
quiz = quiz + vraag;
index++;
});
$('#quiz').html(quiz);
$("#results").click(function() {
var index = 1;
var wrongQuestions = [];
var rightQuestions = [];
questions.forEach(function(question) {
var chosenAnswer = $("input[@name=q" + index + "]:checked").val();
if (chosenAnswer === question.correct) {
rightQuestions.push(question);
} else {
wrongQuestions.push(question);
}
index++;
});
var resultscore = rightQuestions.length + " / " + questions.length;
$('.resultscore').html(resultscore);
let resulttekst = "";
if (rightQuestions.length >= 0 && rightQuestions.length <= 3) {
resulttekst = "U voorkennis voor wiskunde is relatief zwak. Wilt u toch starten met de opleiding raden we aan om zowel de klaarstoomcursus zelfstandig door te nemen in de zomervakentie als u in te schrijven voor de instapcursus wiskunde die plaatsvindt in september.
D.m.v. onderstaande QR-link te scannen of op te klikken kan u de antwoordsleutel downloaden.