0
The code should have one clock but it has two, please tell me where i did wrong
9 odpowiedzi
+ 3
I have modified the code to get correct results
https://code.sololearn.com/W573WM6ezFo6/?ref=app
+ 4
I don't understand, why would you define four functions with the same name drawClock() ?
+ 2
What's wrong with which part.
+ 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 :)
+ 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.
+ 1
Practice and understand the code, you would become a genius 🐵
+ 1
Kirk Schafer indeed
0
It has to clocks instead of one
0
Archana M you are Genius