title: How to alert an input value
body: <p>I am making a form that alerts a users input, this is what I have tried</p>
  
  <pre><code>    Name :&lt;input type="text" id="name"&gt;
  </code></pre>
  
  <p>this is my JavaScript</p>
  
  <pre><code>    function nameIt() {
        var name = document.getElementById("name").value;
          alert("name");
          }
  </code></pre>