Adding different number of '-' in every loop (javascript)

前端 未结 0 1816
名媛妹妹
名媛妹妹 2020-11-29 04:47

I need to create a string like this: 01-2--3---4----5-----6------7------- for a let n=7, using a loop. I\'ve created something like this so far:

         


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