Can anyone fix my error in js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
13th Apr 2021, 3:27 PM
Harshita Kumari
Harshita Kumari - avatar
2 Answers
+ 3
Line 2: It should be canvas.getContext("2d") And window.onload = () =>{ //Put your all JS code here }
13th Apr 2021, 3:34 PM
Vadivelan