Я хочу обратить звезды от (маленьких до самой большой) до (Biggest к наименьшему)Как перевернуть цикл for?
function seethestars1() {
for (var i = 0; i <= 10; i++) {
for (var j = 0; j < i; j++) {
document.getElementById("emptytext2").value += "*";
}
document.getElementById("emptytext2").value += "\n";
}
}
<textarea id="emptytext2" name="S2">
<input id="emptytext3" type="button" value="Click for the stars" onclick ="seethestars1()" />
'вар я = 10; i> = 0; i -) ' – ediblecode
' {) ++ i; 01 = elclanrs
Выполняйте свои задания самостоятельно. :) Станьте помощником! – Tauseef