Function only runs once | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Function only runs once

For some reasons, my left button is only working once and then it decides to just yeet itself away. Can somebody explain to me what this error means and how to fix it? Send help. I hate web dev. https://code.sololearn.com/WvbC7Fj5L7HD/?ref=app

15th Apr 2021, 2:10 AM
Weird Codem
4 Answers
+ 1
I run the code and I found that code is correct. Left button is working more then one time if we click it again and again.
15th Apr 2021, 11:07 AM
Omkar Kamat
Omkar Kamat - avatar
+ 1
Dont worry guys, I solved it myself already.
15th Apr 2021, 11:23 AM
Weird Codem
15th Apr 2021, 1:50 PM
Omkar Kamat
Omkar Kamat - avatar
0
Weird Codem hey there buddy...looks like all three of your buttons are working correctly ..can u define your question more precisely....ps restrict your object to stay on the canvas... hope you answer soon with your correct question... keep coding 💙💙
15th Apr 2021, 11:11 AM
Ankleshwar Mani Dwivedi
Ankleshwar Mani Dwivedi - avatar