New line in Javascript or HTML?

后端 未结 1 1286
独厮守ぢ
独厮守ぢ 2021-01-23 00:36
var symbol = prompt(\"Please choose a symbol\");
var side = prompt(\"Choose the length of the square\");
var count1 = 1;
var count2 = 1;
while (count1 <= side) {
             


        
相关标签:
1条回答
  • 2021-01-23 01:15

    Use a <br> tag for a break. The \r or \n are line breaks, but HTML ignores most whitespace.

    0 讨论(0)
提交回复
热议问题