title: Loop through array, print with string
body: <p>I have a simple array like:</p>
  
  <pre><code>var myArr=["one","two","three"];
  </code></pre>
  
  <p>an I have a counting loop, which increases the value of var <code>i</code> by one.</p>
  
  <p>What I want to do is print the next value from the array each time the loop runs, next to a text string, like so:</p>
  
  <pre><code>alert('value number '+myArr[i]+);
  </code></pre>
  
  <p>But for some reason I can't get this to work. 
  The following code works, so I'm assuming I'm not calling the counter right:</p>
  
  <pre><code>alert('value number '+myArr[0]+);
  </code></pre>