title: Generate a score based on correct answers
body: <pre><code>for (i = 0; i &lt; myQuestions[5].answers.length; i++) {
    $('&lt;li&gt;&lt;input type="radio" name="rbtnCount" value =' + i + '&gt;' + myQuestions[5].answers[i] + "&lt;/li&gt;").appendTo(".rogue")
  }
  $(".rogue").on("change", function () {
    var selected = $('input[name=rbtnCount]:checked').val();
    console.log(selected)
    console.log(myQuestions[5].correctAnswer)
    if (selected == myQuestions[5].correctAnswer) {
      alert("its right!!!")
    } else {
      alert("better luck on nextone!!")
    }
  })
    /// print score based on correct and incorrect
  $(".corr").append(correctAnswer);
  </code></pre>
  
  <p>I dont know where to go after my last line of code to generate a score based on the correct answers. Havent found anything to help with this, its probably an easy code, i just havent been able to find it. Going thru coding bootcamp. So i am very new to this. Thank you</p>