+ 1

How does one use the Date() function to display time in a canvas?

17th Sep 2019, 6:27 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
6 Answers
+ 5
instead you will write to Canvas https://code.sololearn.com/WDWB78EJw2Pc/?ref=app
17th Sep 2019, 6:39 PM
Qudusayo
Qudusayo - avatar
+ 1
Qudusayo so you can't insert it in the "strokeFill()" function?
17th Sep 2019, 6:44 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
+ 1
In canvas in the text parameters, You will set the text to the time
17th Sep 2019, 6:45 PM
Qudusayo
Qudusayo - avatar
+ 1
"time" it self or the function that displays the time?
17th Sep 2019, 6:46 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
17th Sep 2019, 6:47 PM
Michael
Michael - avatar
+ 1
Michael the clock doesn't renew itself the way it would if you had used "document.getElementById().innerHTML"
17th Sep 2019, 7:08 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar