title: Number not increasing on click
body: <p>I have a simple, multiple question quiz that displays certain text when the correct or incorrect answer is selected. Now I am trying to add an incremental score, but am having no success. I have added an alert, which fires whether the answer is correct or incorrect, but the score does not increment.</p>
  <p>What am I missing in my code?</p>
  <p>The full code is included below. Only one question has been included to keep it simple.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function questionMarkers() {
    let labels = document.querySelectorAll(
      "div[class*='rsform-block-question'] .formControlLabel"
    );
    let count = labels.length;
    for (let i = 0; i &lt; count; i++) {
      let marker = `&lt;span class="question-marker"&gt;${i + 1}&lt;/span&gt;`;
      labels[i].insertAdjacentHTML("beforebegin", marker);
    }
  }
  
  const runQuiz = (() =&gt; {
    questionMarkers();
    let score = 0;
    let answers = document.querySelectorAll(".rsform-radio");
    answers.forEach(function(answer) {
      answer.addEventListener("click", (e) =&gt; {
        let target = e.target;
        let container = target.closest(".formContainer");
        let correct = container.querySelector("div[class$='true']");
        let wrong = container.querySelector("div[class$='false']");
        let feedback = container.querySelector("div[class$='feedback']");
        let question = container.querySelector(
          "div[class*='rsform-block-question']"
        );
        let next = container.querySelector(".js-btn--next.success");
        let submit = container.querySelector(
          ".js-btn--submit.rsform-submit-button"
        );
  
        if (e.target.value == "t") {
          correct.style.display = "block";
          wrong.style.display = "none";
          feedback.style.display = "block";
          alert("Correct!");
          score++;
        } else {
          correct.style.display = "none";
          wrong.style.display = "block";
          feedback.style.display = "block";
          alert("Incorrect");
        }
        question.style.display = "none";
      });
      document.getElementById("score").innerText = score;
    });
  })();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;fieldset class="formContainer" id="rsform_53_page_0"&gt;
    &lt;div class="row"&gt;
      &lt;div class="medium-12 columns"&gt;
        &lt;div class="row rsform-block rsform-block-question-one"&gt;
          &lt;div class="medium-3 columns"&gt;
            &lt;span class="question-marker"&gt;1&lt;/span&gt;&lt;label class="formControlLabel" data-tooltip="" aria-haspopup="true" data-disable-hover="false" tabindex="1" title=""&gt;Why do skunks spray?&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class="medium-9 columns formControls"&gt;
            &lt;input type="radio" name="form[question-one]" value="f" id="question-one0" class="rsform-radio"&gt;&lt;label for="question-one0"&gt;To attract a mate&lt;/label&gt;&lt;br&gt;&lt;input type="radio" name="form[question-one]" value="t" id="question-one1" class="rsform-radio"&gt;
            &lt;label for="question-one1"&gt;To defend themselves against predators&lt;/label&gt;&lt;br&gt;&lt;input type="radio" name="form[question-one]" value="f" id="question-one2" class="rsform-radio"&gt;&lt;label for="question-one2"&gt;To mark their territory&lt;/label&gt;&lt;br&gt;
            &lt;input type="radio" name="form[question-one]" value="f" id="question-one3" class="rsform-radio"&gt;&lt;label for="question-one3"&gt;Because they like the smell&lt;/label&gt;
            &lt;span class="formValidation"&gt;&lt;span id="component878" class="formNoError"&gt;&lt;/span&gt;&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="row rsform-block rsform-block-question-one-true" style="display: none;"&gt;
          &lt;p&gt;&lt;strong&gt;Correct!&lt;/strong&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="row rsform-block rsform-block-question-one-false" style="display: none;"&gt;
          &lt;p&gt;&lt;strong&gt;Nice try&lt;/strong&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="row rsform-block rsform-block-question-one-feedback" style="display: none;"&gt;
          &lt;p&gt;Skunks spray an extremely offensive odour to make predators go away and leave them alone. If they feel their life is in danger, they have no other defence as they cannot run fast, climb, burrow under the ground, or fight.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;p id="score"&gt;&lt;/p&gt;
  &lt;/fieldset&gt;</code></pre>
  </div>
  </div>
  </p>