Bagilah intagers javascript

var quotient = Math.floor(y/x);
var remainder = y % x;
Prickly Penguin