title: How to check if an input value is equal to a number
body: <p>How can I check if <code>bath</code> value is equal to a number and not any other kind of value? I tried using NaN but it hasn't worked.  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> if(bath != '') {
    var bath = 'there is this many bathrooms :'
    house['bathroom'] = square;
    bathRoom.innerHTML = bath + Bath; 
   }else{
    var bath = 'No Details Given';
    bathRoom.innerHTML = bath;
  
   }</code></pre>
  </div>
  </div>
  </p>