Now that we have the mesg and result spans to display information, we need JavaScript code to set them. We need two functions, one for each span. They both take a string as an argument and change the innerHTML properties. Before they can do that, they have to find the object. We use the getElementById() action on the document to find the named object. We will save the reference to the object in a variable. We can use the reference to get at the innerHTML property and set it.