+ 5
JS error to fix ...
Hi, my JS code is working well in my browser but not here in the sololearn playground. Can someone explain me why, I would like to understand and fix it before adding content ... https://code.sololearn.com/W2ujCJvirUQy/?ref=app
4 RĂ©ponses
+ 6
Lol ok I fixed it ... Thank you, I'm shameful it was so simple ... đ
+ 5
Thank you Decimis â đŻđđđđđđ it's comforting đ
+ 2
its because the js code run before the page load.
use onload listener on body to make sure the script run after the page loaded
+ 2
Jess There is nothing shameful about it. The simplest things can be the easiest to miss.
This is programming after all where a single missing symbol can cause an entire program to mess up or not run at all đ