var scores = new Array(20, 30, 15, 10, 8); for(var i = 0; i < 5; i++) { alert("Index " + i + ": " + scores[i]); }