Asked by Mrs. Sue.
                What is wrong with my code whatever is wrong with it just put it in the correct version and i will fix it
```html
<!DOCTYPE html>
<html>
<head>
<title>Simple Quiz</title>
</head>
<body>
<h1>Simple Quiz</h1>
<h2>How do you say say "Straight Ahead" in Spanish</h2>
<div id="question"></div>
<button onclick="checkAnswer()">Justo al frenta</button>
<button onclick="checkAnswer()">Todo Recto</button>
<button onclick="checkAnswer()">Justo de frentes</button>
<button onclick="checkAnswer()">Justos al Frentesa</button>
<script>
{
question: "What is the capital of France?",
answer: "Paris";
},
{
question: "What is 2+2?",
answer: "4";
},
{
question: "Who is the president of the United States?",
answer: "Joe Biden",
},
];
var currentQuestion = 3;
function displayQuestion() {
document.getElementById("question").innerHTML =
questions[currentQuestion].question;
}
function (checkAnswer) {
var userAnswer = prompt("Justo Al Frenta:");
if (
userAnswer.toLowerCase() ===
questions[currentQuestion].answer.toLowerCase()
) {
alert("Correct!");
} else {
alert(
"Incorrect. The correct answer is Todo Recto" +
questions[currentQuestion].answer
);
}
if (currentQuestion < questions.length - 1) {
currentQuestion++;
displayQuestion();
} else {
alert("End of Quiz");
}
}
displayQuestion();
</script>
</body>
</html>
            
        ```html
<!DOCTYPE html>
<html>
<head>
<title>Simple Quiz</title>
</head>
<body>
<h1>Simple Quiz</h1>
<h2>How do you say say "Straight Ahead" in Spanish</h2>
<div id="question"></div>
<button onclick="checkAnswer()">Justo al frenta</button>
<button onclick="checkAnswer()">Todo Recto</button>
<button onclick="checkAnswer()">Justo de frentes</button>
<button onclick="checkAnswer()">Justos al Frentesa</button>
<script>
{
question: "What is the capital of France?",
answer: "Paris";
},
{
question: "What is 2+2?",
answer: "4";
},
{
question: "Who is the president of the United States?",
answer: "Joe Biden",
},
];
var currentQuestion = 3;
function displayQuestion() {
document.getElementById("question").innerHTML =
questions[currentQuestion].question;
}
function (checkAnswer) {
var userAnswer = prompt("Justo Al Frenta:");
if (
userAnswer.toLowerCase() ===
questions[currentQuestion].answer.toLowerCase()
) {
alert("Correct!");
} else {
alert(
"Incorrect. The correct answer is Todo Recto" +
questions[currentQuestion].answer
);
}
if (currentQuestion < questions.length - 1) {
currentQuestion++;
displayQuestion();
} else {
alert("End of Quiz");
}
}
displayQuestion();
</script>
</body>
</html>
Answers
                                                    There are no human answers yet.
                                            
                
                                                    There are no AI answers yet. The ability to request AI answers is coming soon!
                                            
                Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.