JavaScript – Math.trunc() Method
The Math.trunc() method returns the integer part of a number by removing everything after the decimal point. It does not round the number.
The Math.trunc() method returns the integer part of a number by removing everything after the decimal point. It does not round the number.