ما هو السبب فى أن عداد التكرار لا يعمل ؟
(function mainFunc(){
var i,
myMain = document.getElementById("main");
function changeColor(color) {
color= ["red","blue","black","yellow","white"];
for(i = 0 ; i<color.length ; i=i+1)
myMain.innerHTML=color[i] ;
}
return changeColor();
}());