+ 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

12th Jul 2020, 6:38 PM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
3 Antworten
+ 6
It's OK. That's right. Thank You both very much!!!
13th Jul 2020, 4:02 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 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);
12th Jul 2020, 7:44 PM
Kevin ★
+ 1
You: getElementsById not is ElementS Correct: getElementById is Element Correct: ":"+date.getSeconds(); include + https://code.sololearn.com/W5I2C1I6n2Nr/?ref=app#js
12th Jul 2020, 7:45 PM
Jônatas Araripe
Jônatas Araripe - avatar