truncintermediate// Remove fractional part (truncates towards zero)
Math.trunc(4.9) // β 4
Math.trunc(-4.9) // β -4Use Math.trunc() to drop the decimal part of a number, always truncating towards zero unlike Math.floor().
Returns the integer part of a number by removing any fractional digits.
Challenge: Explore that Math.trunc(-0.1) returns -0, distinguishable via Object.is.