title: I did not collect input text using JavaScript
body: <pre><code>var get=document.getElementById(&quot;nameholder&quot;).value;
  var submit=document.getElementById(&quot;submit&quot;);
  
  submit.addEventListener(&quot;click&quot;,function(){
      console.log(get);
  });
  </code></pre>