title: I am creating a quiz and want to know if I have to get the value of each choice or is there away to do it short hand
body: <p>I want to get the user selection for a quiz.</p>
  
  <p>I am doing this by using <code>const choiceA = document.getElementById("A").value;</code></p>
  
  <p>There are four choices and instead of creating 4 different const could I do something like. <code>const choice = document.getElementById("A", "B"....).value</code></p>
  
  <p>Or is there any other way to do this short hand?</p>
  
  <p>Any links to good information about gathering user input would be much appreciated too :)</p>
  
  <pre><code>&lt;html&gt;
          &lt;form id="formEl"&gt;
              &lt;h2 id="question"&gt;&lt;/h2&gt;
              &lt;button id="A" type="button" class="userSelection"&gt;&lt;/button&gt;
              &lt;button id="B" type="button" class="userSelection"&gt;&lt;/button&gt;
              &lt;button id="C" type="button" class="userSelection"&gt;&lt;/button&gt;
              &lt;button id="D" type="button" class="userSelection"&gt;&lt;/button&gt;
              &lt;button id="previous" type="button" class="userSelection"&gt;Previous&lt;/button&gt;
              &lt;button id="next" type="button" class="userSelection"&gt;Next&lt;/button&gt;
              &lt;button id="submit"&gt;Submit&lt;/button&gt;
  
          &lt;/form&gt;
  
  &lt;js&gt;
  class Question {
      constructor(question, ansA, ansB, ansC, ansD, answer) {
          this.question = question;
          this.ansA = ansA;
          this.ansB = ansB;
          this.ansC = ansC;
          this.ansD = ansD;
          this.answer = answer;
      };
  
      checkAns(ansSelected, answer) {
          if (ansSelected === answer) {
              console.log('Well Done')
          };
      };
  };
  
  //Questions
  var questionOne = new Question('Where is Creete?', 'Barcalona', 'Greece', 'Dubi', 'Ireland', 'Greece');
  var questionTwo = new Question('How many times have Liverppool won the Champions Legue?', '1', '4', '6', '5', '6');
  var questionThree = new Question('Where was the first Godfather in the mafia from?', 'Milan', 'Gunoa', 'Rome', 'Napoli', 'Napoli');
  
  //Index of the array with the questions array 
  var i = 0;
  const arrayQuestion = [questionOne, questionTwo, questionThree];
  
  //Selecting the value of the user once clicked
  const choiceA = document.getElementById("A").value;
  const choiceB = document.getElementById("B").value;
  const choiceC = document.getElementById("C").value;
  const choiceD = document.getElementById("D").value;
  </code></pre>