Hi, There are errors in my code, but I can't resolve the problem. Could You help me please? | SoloLearn: Learn to code for FREE!

0

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

7/12/2020 6:38:04 PM

EGO

3 Answers

New Answer

+4

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

It's OK. That's right. Thank You both very much!!!

0

You: getElementsById not is ElementS Correct: getElementById is Element Correct: ":"+date.getSeconds(); include + https://code.sololearn.com/W5I2C1I6n2Nr/?ref=app#js