title: Store variable into array javascript
body: <p>How to store the javascript variable into array?</p>
  
  <p>I have these variable and I wish to store them into array:</p>
  
  <pre><code>var name=document.forms["form"]["name"].value;
      var email=document.forms["form"]["email"].value;
      var mobile=document.forms["form"]["mobile"].value;
      var q1=document.forms["form"]["q1"].value;
      var q2=document.forms["form"]["q2"].value;
      var q3=document.forms["form"]["q3"].value;
      var l1=document.forms["form"]["logo1"].value;
      var l2=document.forms["form"]["logo2"].value;
      var l3=document.forms["form"]["logo3"].value;
      var p1=document.forms["form"]["photo1"].value;
      var p2=document.forms["form"]["photo2"].value;
      var p3=document.forms["form"]["photo3"].value;
  </code></pre>