New course! Every coder should learn Generative AI!
Try a free lesson+ 1
step 1. declare inte as a global variable outside of any functions
step 2. move if statement and clearinterval from moveUP() into movement()
if(Ypos < 52){
clearInterval(inte);
https://code.sololearn.com/W0coSFzNxpue/#html