how to get int value on division of two numbers in javascript code example Example: divide intagers javascript var quotient = Math.floor(y/x); var remainder = y % x;