Hallo,
var lotto = null;
while (i > 0)
{ if (i == lotto) document.write(lotto[i] + ".");
else document.write("Fehler");
i=0; i<=5; i++;
}
Warum wird lotto auf null gesetzt? Die Schleife ist auch gar nicht noetig, es reicht:
document.write(lotto);
MfG, Thomas