11th Mar 2018, 12:46 PM
Sina
Sina - avatar
5 Answers
+ 7
Try the following changes: 1. You need to append "px": x.style.left=count--+"px"; 2. Reduce your count value to something smaller like: var count = 100;
11th Mar 2018, 1:25 PM
David Carroll
David Carroll - avatar
+ 7
@nik1082: I was able to get it to work without changing the arrow. But it is good practice to use the HTML Entity &lt;--- instead of <---
11th Mar 2018, 1:30 PM
David Carroll
David Carroll - avatar
+ 1
HTML assumed that your arrow was supposed to be a tag. Replace "<---" with something else. Also on the contents of that paragraph, insert a semicolon at the end of that emoji character code. Tested and working, you just have to click the button multiple times for the car to visibly move.
11th Mar 2018, 1:21 PM
apex137
apex137 - avatar
+ 1
Thank you so much
11th Mar 2018, 4:45 PM
Sina
Sina - avatar
0
I made it true
11th Mar 2018, 4:58 PM
Sina
Sina - avatar