The first element in the ‘message’ class has to be selected, hence the ‘[0]’ after textContent.
Here is the code -
document.getElementsByClassName(‘message’)[0].textContent = “Here is the message”;
Challenge: Change Text with click Events
Link to the challenge: