0
Based on the Javascript Animation lesson, how do you make the block move left?
I thought simply replacing the clearInterval with an opposite if/else would do it, but apparently I'm an idiot. https://code.sololearn.com/WUeKFuh3Bpz3/#js
1 Resposta
0
Ah, I found the problem myself. I thought that the block just stopped and wouldn't move, but turns out the interval was just so low I couldn't notice the movment. It actually IS moving left, but only once, and it returns to the original if/else. Interesting.