JS-Speed-Typing-Game icon indicating copy to clipboard operation
JS-Speed-Typing-Game copied to clipboard

Timer error

Open ryannewcomer opened this issue 1 year ago • 2 comments

HI! I have just copy you work here and run in my browser, but my timer just want completely wrong! At first, it have 0 but it suddenly changed to the word “NaN”! But I still can type and it also appears some random sentence. what’s wrong?

ryannewcomer avatar Sep 20 '22 18:09 ryannewcomer

Hi, Try to change this line: timer.innerText = getTimerTime() with this: timerElement.innerText = getTimerTime()

pncsoares avatar Sep 23 '22 14:09 pncsoares

Got it, thank you

On Fri, 23 Sep 2022, 3:26 pm Pedro Soares, @.***> wrote:

Hi, Try to change this line: timer.innerText = getTimerTime() with this: timerElement.innerText = getTimerTime()

— Reply to this email directly, view it on GitHub https://github.com/WebDevSimplified/JS-Speed-Typing-Game/issues/3#issuecomment-1256285255, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVBPB4HYHQGHLIVYWZVOWU3V7W42LANCNFSM6AAAAAAQRLJUJI . You are receiving this because you authored the thread.Message ID: @.***>

ryannewcomer avatar Sep 24 '22 08:09 ryannewcomer