how to print stars 5 times as a pattern like 1 star and in 2nd line 2 stars likewise in react js?

前端 未结 0 464
伪装坚强ぢ
伪装坚强ぢ 2021-01-07 12:45

in vanilla javascript i know how to print stars in a pattern

var i,j
for(i=1; i<=5; i++)
{
  for(j=1; j<=i; j++)
     document.write("*")

  d         


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