Why is it that in the code playground almost all the codes I run have some error but they run well on the web | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is it that in the code playground almost all the codes I run have some error but they run well on the web

19th May 2020, 9:52 AM
Hansel
11 Answers
+ 2
You would have to link us the code in question so we can tell.
19th May 2020, 10:08 AM
HonFu
HonFu - avatar
+ 1
I see a code in the code playground on the app when I run it I see errors but if I run the same code on the website it runs perfectly
19th May 2020, 10:07 AM
Hansel
+ 1
bell The script you added in your html code after the canvas. Cut-and-paste it to your js tab at the beginning of the script. The undefined variable error will be solved
19th May 2020, 3:11 PM
Ore
Ore - avatar
0
Please describe and put more info
19th May 2020, 9:53 AM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
0
Which lang?
19th May 2020, 10:09 AM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
0
HonFu I have the same experience with web codes: for me these two codes run without errors but one is curated with the help of Omkar and the other must have undefined variables still. For me html/js runs ignoring errors or fails silently without giving me error info beyond "syntax error". Why does this happen in sololearn, can I do anything to catch the errors? https://code.sololearn.com/W6AWQY6bXNnh/?ref=app https://code.sololearn.com/WPAul6r9E2M6/?ref=app
19th May 2020, 2:00 PM
bell
bell - avatar
0
Ore Adeleye thank you for your feedback but my question was why am I not getting any execution errors even though I have some. Now I know about this error it is easy to correct but it is difficult to learn blind. Likewise, a lot of the web codes with many likes on sololearn do not run on my ios device. They crash with only syntax error. But people liking them must be able to see something.
19th May 2020, 3:52 PM
bell
bell - avatar
0
bell I don't know. It must be a problem with the iOS version. I use Sololearn for Android and I do not face that problem. May be you should contact Sololearn?
19th May 2020, 3:55 PM
Ore
Ore - avatar
0
I'm having problems similar to bell problem
19th May 2020, 8:16 PM
Hansel
0
Even Ore Adeleye knows what I am talking about please can you give me any solutions
19th May 2020, 8:47 PM
Hansel
- 1
Link the code so we can understand what the issue is
19th May 2020, 10:08 AM
Ore
Ore - avatar