If you want to explicitly cast the result into an integer, you can use parseInt().
var x = parseInt(455 / 10);
console.log(x); // Outputs: 45
parseInt() parses the number and returns the integer part by discarding the decimals. However, it’s less efficient compared to Math.floor() and | 0, and it’s usually better to use one of those methods unless you specifically need to parse the result as a string.