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