parse int on divide get whole number in JS code example Example: divide intagers javascript var quotient = Math.floor(y/x); var remainder = y % x;