+ 7
Why my Rover doesn't work ?!!
It always give undefined when I enter a number and click on the button " F " . https://code.sololearn.com/Wu19y92JkAta/?ref=app
7 Antworten
+ 2
first, learn the meaning of class versus id,
please use better names for ids, functions and so on as „h“, ....
you have to define all function as log(),...
you have to clean your code
I tried to solved it, I modified it a little bit
it is a good practice and a good idea 👍
https://code.sololearn.com/WE758RSusi3H/ref=app
+ 7
KrOW How to avoid that mistake !!
+ 6
KrOW yes I know, but this time I don't want to make it move when the window is loaded , I want to make the Rover move when we click on " F " button or any button.
+ 1
Bono Its same problem that you has here
https://www.sololearn.com/discuss/1621719/?ref=app
if you dont understand something said in that thread, get me know
+ 1
Bono I have inspected better your code and i finded some other problems like document.getElementsByClassName that return a collection (eg. Array loke object) but you use it like returning a single element