How to get array element number?
<p>Consider an array:</p>

<pre><code>var array = ['one', 'two', 'three'];
</code></pre>

<p>I need to iterate it and get such alerts:</p>

<p>The 0 value is one</p>

<p>The 1 value is two</p>

<p>The 2 value is three</p>

<pre><code>for ( i=0; i&lt;array.length; i++) {
  alert( 'The ' + ? + 'value is ' + array[i] );
}
</code></pre>

<p>How can I do this? Thanks.</p>
