+ 1

How can I write table of 1 to 10

24th Feb 2018, 10:38 PM
YASH RAJ
YASH RAJ - avatar
5 odpowiedzi
+ 2
how
25th Feb 2018, 6:03 AM
YASH RAJ
YASH RAJ - avatar
+ 1
It means table of 1, 2, 3....
25th Feb 2018, 6:02 AM
YASH RAJ
YASH RAJ - avatar
+ 1
var arr=[], a = 0; for(var i = 0; i<=10; i++){ arr.push(a); a++; } document.write(arr);
25th Feb 2018, 6:05 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
var a = 0; for(var i = 0; i<=10; i++){ document.write(a); a++; }
24th Feb 2018, 10:52 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
of course you can split() the output
25th Feb 2018, 6:03 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar