0
Outputs are not running in for loop JavaScript help me..?
I omitted statement2 in for loop of javaScript and ran the program. The page is only bright display no output shown. After that I tried other codes even using default codes by SoloLearn but also not running. After doing this a normal code also not running. Help me to get out of this bug without closing SoloLearn App.
17 Antworten
+ 3
and where is your anarchist( code)?
+ 3
Deepak Sanjaykumar More
Yeah, it's irritating but I didn't experienced these types of errors in sololearn.
+ 1
Deepak Sanjaykumar More the loop, you are showing is infinite loop.
0
Oma Falk I didn't understand what you asked.
0
𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3» Oma Falk I'm saying run any wrong code which displays only white screen. And then run any right code it also displays only white screen in output.
Use any codes. Not necessary to use that code which I typed.
0
𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3» Try yourself please before answering. "Show Console" cannot be operated.
0
Oma Falk 𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3»
for (i=1; ; i++) {
document.write(i + "<br />");
}
Run above code in js. You can't get Show Console. And also run a correct code after running this no code will able to execute the output.
But do this without closing app.
0
🇮🇳Vivek🇮🇳 Currently I have 3 Mbps speed. I don't have any net issue so please try yourself. Don't guess only conditions.
0
𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3» I mentioned you in my code.
0
https://code.sololearn.com/Wk8J46pU1vuD/?ref=app
Is my code is giving you white screen in any case?
0
🇮🇳Vivek🇮🇳 I knew that. You should try well finite loop after running this code. And the next finite loop also giving only white display as output.
Do this without closing app.
0
May be. If you don't close the app. The infinite loop runs in background. I am just guessing.
0
🇮🇳Vivek🇮🇳 Just that was I'm telling. If that loop runs continue until app get closed. Then it is hard to close app every time.
And this problem is not with only loops. I tried it in other places too.
0
𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3» it's irritating to close app everytime after making a mistake.
0
Deepak Sanjaykumar More I also did not experience this on sololearn
0
𝙍𝙞𝙨𝙝𝙖𝙗𝙝«ℙ𝕪3» 🇮🇳Vivek🇮🇳 It's great that you didn't experienced such problems. But did you tried it now?
0
If you have omitted 2nd argument use this Syntex
For(var i = 5 ; ; I++){
}
If you have ommited 2nd option it make your loop infinite loop which may harmful for yr device.