<!DOCTYPE html>
<html>
<body>
<p>Return the integer part of a number (remove the decimals):</p>
<p id="demo"></p>
<script>
let x = Math.trunc(8.7512356);
document.getElementById("demo").innerHTML = x;
</script>
</body>
</html>