+ 4

A problem with setInterval()

After you defeat the man once , his speed rise, and Idk why. I used setTimeout(), am I missing something? https://code.sololearn.com/WxqaGgzZ3q5c/?ref=app

8th Jul 2019, 5:58 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
3 Antworten
+ 4
Fixed it. clearInterval was misplaced https://code.sololearn.com/WNtNPIGR1N8N/?ref=app
8th Jul 2019, 6:15 PM
Airree
Airree - avatar
+ 5
53.
8th Jul 2019, 6:17 PM
Airree
Airree - avatar
+ 3
Airree Where is the change? (Line)
8th Jul 2019, 6:16 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar