+ 1

write script using loop

1 12 123 1234 12345

21st Aug 2016, 1:44 PM
Abhishek Dhumketi
Abhishek Dhumketi - avatar
2 ответов
+ 5
var s = ""; for(var i = 1; i<=5; i++){ s += i; document.writeln(s); }
21st Aug 2016, 3:48 PM
Zen
Zen - avatar
0
var num=""; for(var i=1 i<=5 i++){ num+=i; document.write("num"+<br/>) } 哇哈哈,很简单啊!
1st Dec 2016, 4:44 AM
Leo
Leo - avatar