title: Create Javascript Variable with name of a variable and string combined
body: <p>I cant seem to solve this problem, heres what I have...</p>
  
  <pre><code>vid1=0;
  vid2=0;
  vid3=0;
  
  num=1;
  
  'vid'+num = 1;
  // vid1=1;
  </code></pre>
  
  <p>I want to create the variable based on the number, so if the number is 2, then make a variable by the name of vid2 and set it equal to 1.</p>
  
  <p>PS: This is my first time on stackoverflow, so sorry if I made any mistakes in terms of tradition on this website =) And thannks in advanced.</p>