let message_container = document.getElementsByClassName("message__container")[0];
message_container.innerHTML = "123";
<div class="message__container">
<div class="message__box"></div>
<div class="answer__box"></div>
</div>
Uncaught TypeError: message_container is undefined