+ 1

Why this code is not working -_ [javascript]_-

Why the code of this breaks and continue loop code of Java script is not working i try many times but not showing any thing please solve it https://code.sololearn.com/Wgx47dQraTQU/?ref=app

29th Sep 2020, 5:16 AM
Smart Video Technical
Smart Video Technical - avatar
2 Answers
+ 3
if (i == 3) continue; it's conditional you should use double equal or triple equal operator
29th Sep 2020, 5:36 AM
darkcris1
darkcris1 - avatar
+ 1
Additionally, you have an undefined variable <text>. This triggers error as you tried to use undefined variable <text> as innerHTML property for a paragraph having ID "Breco".
29th Sep 2020, 5:56 AM
Ipang