0

What's wrong with my code?

i don't quite understand what the error means.. https://code.sololearn.com/WpySlJRLfGhY/?ref=app

9th Apr 2017, 11:00 AM
Kyle Christian Orilla
Kyle Christian Orilla - avatar
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.
9th Apr 2017, 11:03 AM
Ashwani Kumar
Ashwani Kumar - avatar