+ 5
Hi, There are errors in my code, but I can't resolve the problem. Could You help me please?
https://code.sololearn.com/W5I2C1I6n2Nr/?ref=app https://code.sololearn.com/WTBv0R63K01H/?ref=app
3 Antworten
+ 6
It's OK. That's right. Thank You both very much!!!
+ 5
EGO The method name is getElementById (not Elements).
There can't be two or more elements with the same id in your page. Knowing this it's easier to remember.
Also you forgot a + sign somewhere in your code after a ":"
I know you will be able to find it out.
Optional: Don't pass a string as first parameter in setTimeout/setInterval because that calls eval(an evil function you'd want to avoid) internally. Passing the function directly is usually preferred:
setTimeout (Timer,1000);
+ 1
You: getElementsById not is ElementS
Correct: getElementById is Element
Correct: ":"+date.getSeconds(); include +
https://code.sololearn.com/W5I2C1I6n2Nr/?ref=app#js