0

Where is the problem?

for (i=1;i<=16;i++){ if (i==13){ continue; } console.log(i+"<br/>"); } Gives output as 1<br/> 2<br/> ... .. I need as 1 2 3 4 ...

6th Feb 2021, 11:38 AM
Md Imraj Hossain
Md Imraj Hossain - avatar
3 odpowiedzi
+ 4
Md Imraj Hossain console.log by default add new line so no need to do anything. Just do console.log(i) https://code.sololearn.com/Whq5O2074SNf/?ref=app
6th Feb 2021, 12:03 PM
A͢J
A͢J - avatar
+ 1
Yes it is the right output. if you are wondering about br tag, then it's just a string which is logged to the console .
6th Feb 2021, 11:41 AM
Abhay
Abhay - avatar
0
How to remove <br/> Same way I have done earlier but there was no such problem.
6th Feb 2021, 11:44 AM
Md Imraj Hossain
Md Imraj Hossain - avatar