Rate these Explanations!

Consider the following javascript code:

       message = document.getElementById('wordBox').value;
    

Below are candidate explanations for what this javascript code does. Some explanations are better than others. Some explanations are simply wrong. Rate each explanation.

  1. A link is created between the value of the wordBox element and the variable message.
  2. Javascript writes out a message after the user presses a button.
  3. Javascript gets the string from the HTML element with the id of 'wordBox'. Then it assigns the string to the memory location with the name 'message'.
  4. The 'message' variable gets the value of whatever string is in the "wordBox" box.
  5. The value stored in the message variable is presented in the wordBox box.

When you are satisfied with your ratings, press the button below to get your score as a rater.