JavaScript, the language, doesn’t (AFAIK; I don’t keep track of this rapidly moving target) have integers (but does have integer arrays, nowadays. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Type...)
If the type were integer,
let x = 2
let y = x / 8
would have y = 0, but its value will be 0.25.