Obtenha apenas Integer não Decimal JS
var n = 5/3
n = Math.floor(n)
//This will return 1.
//Math.floor returns a number less than or equal the number given
DajuSar
var n = 5/3
n = Math.floor(n)
//This will return 1.
//Math.floor returns a number less than or equal the number given