title: Converting a String to a Number in JS
body: <p>Can someone please advise why the 'inputValue' variable in the below function is not being converted into a Number. I was expecting the second <code>console.log</code> to report that the variable is now a Number (since I applied <code>parseInt</code> to it).
  But apparently its still a String.     </p>
  
  <pre><code>function checkIfNum(){
      var inputValue = document.getElementsByTagName('input')[0].value;
      console.log(inputValue);
  
      // Convert to a number
      parseInt(inputValue);
  
      console.log(typeof(inputValue));
  }
  </code></pre>