var scores = [24, 32, 17]; var arrayLength = scores.length; var i =0; while(i < arrayLength){ var B=scores[i]; println(B); i++; } function println(a) { document.write(a+"<br>") }