+ 1

Why am i getting this reference error?

"getContext is not a function" https://code.sololearn.com/WrVhL8VdGisX/?ref=app

8th Jul 2020, 3:23 AM
Sameer Crestha
Sameer Crestha - avatar
3 ответов
+ 7
Html tag spelling is wrong which makes getcontext to call a non pure canvas
8th Jul 2020, 3:37 AM
Atul
Atul - avatar
+ 2
Oopsie
8th Jul 2020, 3:43 AM
Sameer Crestha
Sameer Crestha - avatar
+ 1
Check your canvas spelling. <canvas id="canvas"></canvas>
8th Jul 2020, 3:35 AM
Shobhith J B
Shobhith J B - avatar