Can anyone fix my error in js | Sololearn: Learn to code for FREE!

0

Can anyone fix my error in js

https://code.sololearn.com/W4S6qe7x7Nri/?ref=app

4/13/2021 3:27:05 PM

Harshita Kumari

2 Answers

New Answer

+3

Line 2: It should be canvas.getContext("2d") And window.onload = () =>{ //Put your all JS code here }

+3

https://code.sololearn.com/WfYA03TOD506/?ref=app