JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <div id="content">
  <h3 id="question" style="color:orange;">

  </h3>
  <div id="choices">

  </div>
  <br>
  <p><button id="submit" class="btn btn-warning"></button>
  </p>

  <p id="score">

  </p>
</div>
</body>

JavaScript

var questions = [
{
  "question": "The next Playstation platform will be:",
  "allAnswers": ["PS5", "PS4K", "PSX", "PS8K"],
  "correctAnswer": "PS4K"
},
{
  "question": "The Sloth's scientific name, Bradypus, is Greek for:",
  "allAnswers": ["Moving slowly", "Swiftly", "Slow feet", "Sleeping"],
  "correctAnswer": "Slow feet"
},
{
  "question": "Earth is how far away from the Sun:",
  "allAnswers": ["92.96 Million Miles", "82.96 Million Miles", "102.96 Million Miles", "72.96 Million Miles"],
  "correctAnswer": "92.96 Million Miles"
},
{
  "question": "The first issue of National Geographic was issued in:",
  "allAnswers": ["1901", "1874", "1888", "1926"],
  "correctAnswer": "1888"
},
{
  "question": "It is approximitely how hot on the planet Venus:",
  "allAnswers": ["262 Degrees C", "162 Degrees C", "462 Degrees C", "862 Degrees C"],
  "correctAnswer": "462 Degrees C"
},
{
  "question": "What type of star is the Sun:",
  "allAnswers": ["White Dwarf", "Yellow Dwarf", "The sun is NOT a star", "Orange Dwarf"],
  "correctAnswer": "Yellow Dwarf"
},
{
  "question": "Approximitely how much of the ocean has been explored:",
  "allAnswers": ["12%", "23%", "38%", "5%"],
  "correctAnswer": "5%"
},
{
  "question": "Approximitely how long did it take for the Apollo missions to reach the moon:",
  "allAnswers": ["36 hours", "24 hours", "72 hours", "96 hours"],
  "correctAnswer": "72 hours"
},
{
  "question": "The world record for most spoons balanced on the face is:",
  "allAnswers": ["45 spoons", "62 spoons", "31 spoons", "91 spoons"],
  "correctAnswer": "31 spoons"
},
{
  "question": "The world record for most socks put on one foot in one minute is:",
  "allAnswers": ["12 socks", "28 socks", "48 socks", "67 socks"],
  "correctAnswer": "48 socks"
}];

var content = document.getElementById("content");
var questionHolder = document.getElementById("question");
var choicesHolder = document.getElementById("choices");
var scoreHolder = document.getElementById("score");
var...