+ 3
How can add counting in JavaScript
reverse counting
2 Answers
+ 9
var a = 5, b;
while (a > 0) {
b += a;
a--;
}
(what exactly do you want??)
+ 4
var x=prompt("Enter the starting number"," ");
var y=x;
for(y=x; y>=0; y--){
document.write(x);
}
reverse counting