The code should have one clock but it has two, please tell me where i did wrong | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

The code should have one clock but it has two, please tell me where i did wrong

https://code.sololearn.com/WmZHFk0w4XcK/?ref=app

25th Nov 2018, 6:48 PM
Whisper
Whisper - avatar
9 Respostas
+ 3
I have modified the code to get correct results https://code.sololearn.com/W573WM6ezFo6/?ref=app
26th Nov 2018, 2:07 PM
Popat
Popat - avatar
+ 4
I don't understand, why would you define four functions with the same name drawClock() ?
25th Nov 2018, 7:39 PM
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½ - avatar
+ 2
What's wrong with which part.
25th Nov 2018, 6:59 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 2
[note, re: Shashi Ranjan's question] The 4 drawClock definitions are unusual even when it's part of the program's intended design (and probably still aren't desirable here) -- just FYI :)
15th Dec 2018, 5:05 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Siyabonga Paul Khumalo because you are drawing clock twice on canvas, first one at start of script then again at end of script. changes to be made are 1. disable the canvas and drawclock function at start of script. 2. uncomment drawclock function at end of script. code will work as expected. try it then will explain you reason.
26th Nov 2018, 4:30 AM
Popat
Popat - avatar
+ 1
Practice and understand the code, you would become a genius šŸµ
27th Nov 2018, 8:35 AM
Popat
Popat - avatar
+ 1
17th Dec 2018, 2:39 AM
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½ - avatar
0
It has to clocks instead of one
25th Nov 2018, 7:03 PM
Whisper
Whisper - avatar
0
Archana M you are Genius
26th Nov 2018, 3:45 PM
Whisper
Whisper - avatar