cool | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 5

cool

Why is "<br/>" necessary in the following code? var i=20; do { document.write(i + "<br />"); i++; } while (i<=25);

22nd Jun 2017, 5:56 AM
yuanhang
2 Answers
+ 12
No need to post the same question three times ~_~ It's not necessary to put a <br/> in this code, it's just for a line break. The code works without it as well ^^
22nd Jun 2017, 6:06 AM
Dev
Dev - avatar
+ 4
And if you are going to post it (please be once) name it something relevant next time, not something with a pointless title such as "cool".
22nd Jun 2017, 6:58 AM
iBrandon
iBrandon - avatar