Change text with click event

What is your hint or solution suggestion?

there is a mistake with the HTML.Try using document.getElementsByClassName(“message”)=“here is the new message”;
instead of document.getElementsByClassName(“message-box”)=“here is the new message”; as indicated in the HTML

Challenge: Change Text with click Events

Link to the challenge:


I am not quite sure what mistake you are seeing. The HTML has the following value:

<p class="message box">
  The message will go here

This element has two classes, “message” and “box”.