title: Javascript Personality Quiz
body: <p>I'm new to Javascript and need help making a Personality Quiz like one you would find on Buzzfeed (E.G: <a href="http://www.buzzfeed.com/justinabarca/which-goonies-character-are-you" rel="nofollow">http://www.buzzfeed.com/justinabarca/which-goonies-character-are-you</a> )</p>
  
  <p>I want to create a form that takes a users input and calculates, by adding the user input's corresponding character[x]AnswerArray value, which character they are most like.</p>
  
  <p>I have a two dimensional array that stores each question and every answer for each question.</p>
  
  <pre><code>var questionArray = [
                      ["Question 1?", "Answer 1", "Answer 2", "Answer 3"], 
                      ["Question 2?", "Blue", "Green", "Red"], 
                      ["Question 3?", "Blue", "Green", "Red"], 
                      ["Question 4?", "Blue", "Green", "Red"], 
                      ["Question 5?", "Blue", "Green", "Red"], 
                      ["Question 6?", "Blue", "Green", "Red"]
                  ];
  </code></pre>
  
  <p>I display this in a "For-Next" iteration:</p>
  
  <pre><code>for (var i = 0; questionArray.length; i++){
  document.write("&lt;span class='question'&gt;" + questionArray[i][0] + "&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;");
  for (var x = 1; x &lt; 4; x++){
      document.write("&lt;input type='radio' class='answer' name='answer' value='" + questionArray[i][x] + "'&gt;" + questionArray[i][x] + "&lt;br/&gt;&lt;br/&gt;");
  }
  </code></pre>
  
  <p>I also have a two dimensional array for each possibility (in this case, Character) :</p>
  
  <pre><code>var characterOneAnswerArray = [
                      ["0, 1, 4"],
                      ["2, 3, 6"],
                      ["1, 3, 0"],
                      ["2, 4, 5"],
                      ["0, 0, 1"]
                ];
  </code></pre>
  
  <p>Here is where I get stuck. How do I keep track of (store) the users input (answers) then add them to each characters total, then finally calculate which character has the highest score?</p>
  
  <p>If you don't understand what I mean please tell me</p>