+ 3
Why it doesn't work correctly??
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;
+ 7
@nik1082: I was able to get it to work without changing the arrow. But it is good practice to use the HTML Entity <--- instead of <---
+ 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.
+ 1
Thank you so much
0
I made it true