Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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
10 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