+ 1
How can I write table of 1 to 10
5 Respuestas
+ 2
how
+ 1
It means table of 1, 2, 3....
+ 1
var arr=[], a = 0;
for(var i = 0; i<=10; i++){
arr.push(a);
a++;
}
document.write(arr);
0
var a = 0;
for(var i = 0; i<=10; i++){
document.write(a);
a++;
}
0
of course you can split() the output