+ 2

Sololearn JS is not working

Do you have any idea, why my codes in Javascript do not work here in Sololearn? I use Visual Studio Code when playing with codes on my PC, but when I post those codes here in Sololearn Code playground, they are not working. Thank you for your ideas.

18th Jun 2019, 1:33 PM
Lucie
Lucie - avatar
4 ответов
+ 7
Try this: window.onload=function() { // your JS here } Or put your code in <script> tags at the end of your html file, right before the </body> tag
18th Jun 2019, 1:40 PM
Anna
Anna - avatar
+ 2
not working for me too
6th Feb 2022, 3:13 PM
Kala Nandini
Kala Nandini - avatar
+ 1
Thank you very much Anna, I tried the first way and it works :) Coder thank you too
18th Jun 2019, 2:13 PM
Lucie
Lucie - avatar