No title

Question 1:

What is the capital of France?

A. Paris
B. Berlin
C. London

Question 2:

What is the largest planet in our solar system?

A. Jupiter
B. Saturn
C. Earth
function checkAnswers() { var q1 = document.querySelector('input[name="q1"]:checked').value; var q2 = document.querySelector('input[name="q2"]:checked').value; var score = 0; if (q1 == "a") { score += 1; } if (q2 == "a") { score += 1; } alert("Your score is: " + score); }

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.