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

23rd Oct 2018, 3:17 PM
Lonnie Wright
1 Answer
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.
23rd Oct 2018, 3:24 PM
Lonnie Wright