title: I need to check if a number is not a decimal, I'm trying with Number.isInteger() but doesn't work
body: <p>I want a prompt alert keep popping out until the user enters a number with no decimals, and for some reason, I don't understand Number.isInteger is not working, for example it accepts 4.4 or 8.333... Is it that Number.isInteger evaluate to true with decimals?</p>
  <p>check this snippet:</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>function till() {
    let x = prompt("ingrese numero")
    if (Number.isInteger(parseInt(x)) === false) {
      till()
    }
  }
  
  till()
  
  console.log("FInally out!")</code></pre>
  </div>
  </div>
  </p>