I hope I am posting this in the right place and not doing anything wrong. I am just lost right now in my Java class, I have these 3 questions left on my homework and I just do not understand them. I tried writing the code in code checkers I tried writing the code in Dreamweaver and opening it in my browser. I have tried all that multiple ways and I cannot get any output. The better answer would be for me to know what the output would be without having to write and execute it but I I don't, maybe someone can explain it to me in English

Well anyway below is the 3 problems I need help with, I need to know what the output would be.
Thanks in Advance
var i = 0;
var favoriteColors = new Array();
favoriteColors[0] = “red”;
favoriteColors[0] = “yellow”;
favoriteColors[0] = “blue”;
favoriteColors[0] = “green”;
favoriteColors[0] = ”fuchsia”;
favoriteColors[0] = “teal”;
while (i < 4) {
document.write(favoriteColors[i] + “<br />”);
++i;
}
var i = 0;
var favoriteColors = new Array();
favoriteColors[0] = “red”;
favoriteColors[0] = “yellow”;
favoriteColors[0] = “blue”;
favoriteColors[0] = “green”;
favoriteColors[0] = ”fuchsia”;
favoriteColors[0] = “teal”;
do{
document.write(favoriteColors[i] + “<br />”);
i = i + 2;
} while(i < favoriteColors.length);
var i = 0;
var favoriteColors = new Array();
favoriteColors[0] = “red”;
favoriteColors[0] = “yellow”;
favoriteColors[0] = “blue”;
favoriteColors[0] = “green”;
favoriteColors[0] = ”fuchsia”;
favoriteColors[0] = “teal”;
for (var i =; i < favoriteColors.length; ++i)
}
document.write(favoriteColors[i] + “<br />”);
}