help with code

+1 william appiah-dankwah · March 9, 2015
i am trying to get this loop to work with this array i have put in an object literal i dont know what to do help needed.

var Yellow = {

say: function(){

var Can = new Array();

Can[0]  = "Blue";
Can[1] = "Green";

for(var i = 0; i < 10; i++){

document.getElementById('Plane').innerHTML = i[1];

}
}
};
Yellow.say();
































Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 william appiah-dankwah · March 9, 2015
i want to use getElementById() were do i find a list of properties and methods for the dom elements i think it is?
  • 1
  • 2

Javascript

107,128 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators