Canvas why do I get null error getContext | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Canvas why do I get null error getContext

im unsure why https://code.sololearn.com/WTx5LmW0IT7t/?ref=app

29th Oct 2018, 6:44 AM
Jason Kennedy
4 Answers
29th Oct 2018, 6:57 AM
Ajax
Ajax - avatar
+ 1
thanks i guess i dont understand. i tried but not sure
29th Oct 2018, 7:23 AM
Jason Kennedy
+ 1
nm figured it out thanks ajax
29th Oct 2018, 7:26 AM
Jason Kennedy
0
init() is called before the html canvas element is defined
29th Oct 2018, 7:34 AM
Bebida Roja
Bebida Roja - avatar