0
Canvas javascript error
Ok guys Hey, i don't undestand what is wrong here they say it's an error at line 2 In javascript canvas.getContext https://code.sololearn.com/WZ89E8a70Q87/?ref=app
7 Réponses
+ 1
Add all JS into onload callback function.
https://code.sololearn.com/W1JT9X3yNqox/?ref=app
+ 1
onload = function () {
// add your javascript codes here
}
+ 1
ctx=canvas.getContext("2d")
+ 1
Ok thanks u a lot !
0
When I wrote this in my computer that's work well but here no.. :(
0
Can you show me an example please ?
0
Nan bro :/