make me a JavaScript code for a simple quiz

Sure! Here's a simple quiz using JavaScript:

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

<div id="quiz">
<p id="question">What is the capital of France?</p>
<input type="radio" name="answer" value="paris"> Paris<br>
<input type="radio" name="answer" value="london"> London<br>
<input type="radio" name="answer" value="berlin"> Berlin<br>
<button onclick="checkAnswer()">Submit</button>
</div>

<p id="result"></p>

<script>
function checkAnswer() {
var answer = document.querySelector('input[name="answer"]:checked');
if(answer) {
if(answer.value === "paris") {
document.getElementById("result").innerText = "Correct!";
} else {
document.getElementById("result").innerText = "Incorrect. The correct answer is Paris.";
}
} else {
document.getElementById("result").innerText = "Please select an answer.";
}
}
</script>
</body>
</html>
```

This code will display a question asking for the capital of France and provide three options (Paris, London, Berlin). When the user selects an answer and clicks the submit button, it will check if the answer is correct and display a message accordingly.