Give me a code for making a Simple Quiz that I can use. for JavaScript

Sure! Here is a simple quiz code in JavaScript:

```html
<!DOCTYPE html>
<html>
<head>
<title>Simple Quiz</title>
</head>
<body>

<h1>Simple Quiz</h1>

<div id="question"></div>
<button onclick="checkAnswer()">Check Answer</button>

<script>
var questions = [
{
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 = 0;

function displayQuestion() {
document.getElementById('question').innerHTML = questions[currentQuestion].question;
}

function checkAnswer() {
var userAnswer = prompt("Enter your answer:");
if (userAnswer.toLowerCase() === questions[currentQuestion].answer.toLowerCase()) {
alert("Correct!");
} else {
alert("Incorrect. The correct answer is " + questions[currentQuestion].answer);
}

if (currentQuestion < questions.length - 1) {
currentQuestion++;
displayQuestion();
} else {
alert("End of Quiz");
}
}

displayQuestion();
</script>

</body>
</html>
```

This code will display a simple quiz with three questions. When the user clicks the "Check Answer" button, they will be prompted to enter their answer. Depending on their answer, they will receive a message if it's correct or incorrect. After answering all questions, they will see an "End of Quiz" message.