0
What's wrong with my code?
i don't quite understand what the error means.. https://code.sololearn.com/WpySlJRLfGhY/?ref=app
1 Answer
+ 5
Nothing wrong. Just the JS part executing even before the HTML rendered.
So place your JS inside script tag in body.
Or wrap your code inside body onload function.