There are three key functions that make this program run properly:
getValues
This function searches our HTML by ID for the corresponding value that the user enters.
reverseString
This function will take our entered string and iterate over it backwards. An empty variable called "output" is declared first, and then the loop adds each new character to output starting last to first.
displayString
This function is simply here to show off the output onto the website for the user. It looks for a labeled space to send the text and pastes the variable as a string of text.
Together, these functions keep each piece of complexity separate, so that it is easy to read, understand, and manipulate.