title: Console.log data from HTML form input
body: <p><a href="https://codepen.io/anon/pen/NYaeXV" rel="nofollow noreferrer">https://codepen.io/anon/pen/NYaeXV</a></p>
  
  <p>I am trying to log the value of a HTML form input. I put multiple options inside the CodePen. Here is my initial thought process. </p>
  
  <pre><code>&lt;form action=""&gt;
  &lt;input type="text" name="data" id="data"&gt;
  &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  
  function sConsole() {
    var data = document.getElementById("data");
    console.log(data.value());
  }
  sConsole();
  </code></pre>