Since variables and values work in JavaScript. Think of variables as containers. WITH
var MessageElement = document.getElementById("happy").innerHTML
the container MessageElementwill contain a string. Later, with
MessageElement = Message;
you just put the new value in the container, overwriting the previous value / content that the container had. But this does not affect the location at which the previous value occurred.
.innerhtml MessageElement MessageElement.innerHtml = Message, .
DOM
MessageElement.innerHtml = Message
( ), ().