title: How to print a value in console.log base on ID of an element?
body: <pre><code>&lt;input id=&quot;email&quot; name=&quot;email&quot; type=&quot;text&quot; value=&quot;ooooo@gmail.com&quot;&gt;
  </code></pre>
  <p>How do I get value of id=email and print it out to my console or anywhere for testing purposes ?</p>
  <p>I tried, but no luck :(</p>
  <pre><code>script type=&quot;text/javascript&quot;&gt;
      document.getElementById('email').innerText;
  &lt;/script&gt;
  </code></pre>