Tome solo en parte de la parte del número JS

// 11
Math.trunc(11.25)

// 11
Math.trunc(11.99)

// -11
Math.trunc(-11.25)

// 11
Math.trunc(11)
Maksym Maksymenko