title: I'm trying to update my div element with the value of my nameInput, isn't my code right?
body: <p>I have a div element with id="firstDiv" and an input field with id="nameInput".
  I am trying to get the user input (from id="nameInput") and display it in my div element. shouldn't this work?</p>
  
  <pre><code>document.getElementById("firstDiv").innerHTML = document.getElementById("nameInput").value;
  </code></pre>