=================================== lab12.js ======================================== var vraag = new Array(); var correctantwoord = new Array(); var antwoordd = new Array(); vraag[1] = " 8 X 4 = ? "; vraag[2] = " 8 / 4 = ? "; vraag[3] = " 16 X 4 = ? "; vraag[4] = " 1 X 4 = ? "; vraag[5] = " 2 X 4 = ? "; vraag[6] = " 3 X 4 = ? "; vraag[7] = " 4 X 4 = ? "; vraag[8] = " 5 X 4 = ? "; vraag[9] = " 6 X 4 = ? "; vraag[10] = " 7 X 4 = ? "; correctantwoord[1] = "32"; correctantwoord[2] = "2"; correctantwoord[3] = "64"; correctantwoord[4] = "4"; correctantwoord[5] = "8"; correctantwoord[6] = "12"; correctantwoord[7] = "16"; correctantwoord[8] = "20"; correctantwoord[9] = "24"; correctantwoord[10] = "28"; function toets(index) { antwoord = prompt(vraag[index]); if(antwoord == correctantwoord[index]) { antwoordd[index] = "correct"; return("Correct!"); } else { antwoordd[index] = "fout"; return("Fout!"); } }