0

Why every js editor stopped in mobile when I use this for(i=10;i>=-10;i--){ document.write(i+"<br/>"); } ?

for(i=10; i>=-10; i--){ document.write(i+"<br/>"); }

24th Sep 2022, 2:43 PM
Vikas
Vikas - avatar
2 Answers
+ 3
What kind of editor you use for testing? Here you use document.write what is command for writing inside web document not console. If you wanna see inside console use console.log(), maybe thats why you have problem, code is working just fine on sololearn
24th Sep 2022, 3:03 PM
PanicS
PanicS - avatar
+ 1
But working in Sololearn
24th Sep 2022, 2:56 PM
AÍąJ
AÍąJ - avatar