give me 2 javascript codes with 1 question And three selections

Code 1:

```javascript
var age = prompt("What is your age?");
var voteStatus = age >= 18 ? "You are eligible to vote." : "You are not eligible to vote.";
console.log(voteStatus);
```

Code 2:

```javascript
var answer = prompt("What is the capital of France?");
var correctAnswer = "Paris";
var result = answer.toLowerCase() === correctAnswer.toLowerCase() ? "Correct!" : "Incorrect. The capital of France is Paris.";
console.log(result);
```