In JavaScript, how do I get:
For some number y and some divisor x compute the quotient (quotient) and remainder (remainder) as:
y
x
quotient
remainder
var quotient = Math.floor(y/x); var remainder = y % x;
1.4m articles
1.4m replys
5 comments
57.0k users