What is problem with my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is problem with my code

I tried many ways but I couldn't find the problem can you guys please help me https://code.sololearn.com/W4AKSDr2s2T8/?ref=app

19th Jun 2023, 4:37 AM
Jaiadarsh Ganeshbabu
Jaiadarsh Ganeshbabu - avatar
2 Answers
+ 4
There's a bunch wrong, but to start with: * Wrap everything inside window.onload to avoid scope problems * Delete the duplicate button.onclick definition * Add an initializing request for animation frame, inside onload but outside of draw That should be enough to get you on the right track.
19th Jun 2023, 5:17 AM
Orin Cook
Orin Cook - avatar