0
How do I fix this error?(js , canvas)
hello. this is my code. How do I fix this error? https://code.sololearn.com/WymV2uKcYPQ6/?ref=app https://code.sololearn.com/WymV2uKcYPQ6/?ref=app thanks for help🌹
3 Respuestas
+ 3
The js code is running before the document loads,.
so you need to wait untill the page loads and then run the js code.
window.onload = () => {
//your code
}
+ 2
Welcome
+ 1
thanks🌹