Javascript crashing codes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Javascript crashing codes

Not sure if it's just me but when I run a JS the output will be empty and every other code will be empty after that. To clarify I'm trying to work with JS and I run my code, nothing appears so I would move to a css file to check if my connection is fine and that doesn't load either. This only happens after running the JS though. Everything else loads as long as I don't run . Sorry If this is a bad explanation but does anybody know a fix? Can't get passed the JS lessons without JS.

7th Mar 2017, 8:26 AM
YeetYote
YeetYote - avatar
2 Answers
+ 9
Unfortunately--as you've just discovered--you can sometimes break the WebView/Chromium engine or...'busy it out'. I started adding timers to abort my stuff after a few minutes, because (like many games here), runs >2 got more and more laggy. Because I suspect SoloLearn has added a workaround (just a feeling) there appear to be at least two 'fixes': 1. Completely back out of your codes, into your profile. Somewhere in here I think SoloLearn resets Javascript; I'm pretty sure 'autokill' is built into the programs browsing list, so go browse some recent codes. 2. Failing that, 'Force Stop' the app in your mobile's [about this app] section*, then restart it. You can get there in Settings|Apps or 'holding down' on the SoloLearn icon and choosing 'App Info'. * Don't just close it by swiping it away (that won't kill Chromium). If you do this correctly you'll get a fresh WebView with no stuck scripts.
25th Mar 2017, 7:54 PM
Kirk Schafer
Kirk Schafer - avatar
+ 7
Fixed it. I used commas instead of semicolons and the opposite operator. Not sure why it breaks the app though.
7th Mar 2017, 8:33 AM
YeetYote
YeetYote - avatar