title: Js if statement with HTML input
body: <p>cant see what im doing wrong here. Im trying to get javascript to right to console when "hi" is typed into the input field.</p>
  
  <pre><code>    const username = document.getElementById('item');
  let messages = []
  
  if(username == "hi"){
    console.log("hello")
  }
  </code></pre>
  
  <p>^that was my js</p>
  
  <pre><code>    &lt;div&gt;
      &lt;label&gt;Search database&lt;/label&gt;
      &lt;input type="text" id="item" autofocus&gt;&lt;/input&gt;
  
    &lt;/div&gt;
  </code></pre>
  
  <p>^html</p>