HTML Not updating in JS

Hello every one this is my pen on code pen →

On line 31 and 32 this part of the code that was supposed to do something is not doing →

let finalMessage = "You typed at "+speed+" words per minute";
message.innerHTML = finalMessage;

I was trying to accomplish this →

Count Words.
Divide by total time → words/minute
Output final message.

Hi there codeispoetry,

find this line…

      let str = palyText.value;

…and you might notice a typo. :winky:

coothead

1 Like

Yes, I did. Thanks for the help.

Hi there codeispoetry,

if you put the HTML within a form element and
then add an input type=“reset” to it, you will be
able to clear the textarea content.

You could also add a form reset() to the script
which clear everything up on page refresh. :winky:

coothead

1 Like

How? Can you please help me with an example in my codepen context?

Here you go…

https://codepen.io/anon/pen/WVZZaw?editors=1011 . :winky:

coothead

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.