Consider an array:
var array = ['one', 'two', 'three'];
I need to iterate it and get such alerts:
The 0 value is one
The 1 value is two
The 2 value is three
for ( i=0; i<array.length; i++) {
alert( 'The ' + ? + 'value is ' + array[i] );
}
How can I do this? Thanks.