+ 1

sololearn don't know canvas?

this code runs perfectly outside sololearn,but sololearn fails to recognize the canvas element https://code.sololearn.com/W7oqMjVW6rKS/?ref=app

25th Nov 2017, 7:54 AM
Richardn
Richardn - avatar
1 Respuesta
+ 4
Sololearn Javascript pane code is run from head tag before DOM elements loaded. You can't run DOM access code directly there, set window.onload callback function instead.
25th Nov 2017, 8:05 AM
Calviղ
Calviղ - avatar