How to return a 1 2 3 4 5 … pattern in JavaScript but with the following number starting on a new line?

前端 未结 0 1541
猫巷女王i
猫巷女王i 2020-12-09 17:10

Expected output :

1
2 3
4 5 6
7 8 9 10
...

What I tried (and many other not working things) :

let line = "";

for (l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题