In JavaScript, how do I get:
For some number y
and some divisor x
compute the quotient (quotient
) and remainder (remainder
) as:
var quotient = Math.floor(y/x); var remainder = y % x;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With