+ 11
My code runs perfectly on my smartphone but doesn't work in the web version of SoloLearn on my computer⁉️🤔 [FIXED]
When I try to run this code on my laptop I get two errors: First after loading & trying to run the code⁉️ SyntaxError: Unexpected end of input at receiveMessage (https://solocode.azurewebsites.net/:315:19) Second after clicking on the button "Next 🌐 Avatar"⁉️ ReferenceError: next is not defined at HTMLButtonElement.onclick (https://solocode.azurewebsites.net/:1:2551) https://code.sololearn.com/WXEmMRkrNa89/?ref=app
17 Respostas
+ 5
FF9900
Thx, the code works perfectly both on phone & comp‼️ I've learned a lot‼️😃👍
I strongly believe that you didn't hurt yourself during fixing my snippets⁉️🤔
As a pythonistas, I removed all semicolons from JS code 😀🤣
+ 5
ODLNT Right, everything is 🆗 when you end the code with a blank line. Such code surprises are very difficult to debug and waste your precious time‼️😮
+ 3
Two things about Sololearn website web playground
First: JS tab does not like single line comments at end of code, don't know why?
Second: Anything in the JS tab will be wrap in an IIFE.
https://code.sololearn.com/WXEmMRkrNa89/?ref=app
+ 2
Solo don't support other tags
+ 1
Mirielle I wish, but I do enjoy using the Sololearn website 😉
+ 1
Janusz Bujak 🇵🇱 It appears I miss spoke somewhat on the single line comment issue. You can use single line comments at the end of the code. It just can't be the last line, meaning you need to add an empty line after the comments.
Using the code @FF9900 refactored add an empty line to end of the last comments
Run and no more unexpected end of input error messages.
Sorry for the confusion
+ 1
use visual studio seperately instead of using the built in code engine of sololearn imo
0
ummm hi prezdent of the underground n on top whats up.|zm.
- 3
Hi