Back
Can anyone tell me how to implement the below in JavaScript?
The whole number of times a given integer goes to the other.
How to get the remainder?
You can see the code below to compute the quotient and remainder for a number ‘y’ and a divisor ‘x’:
var quotient = Math.floor(y/x);var remainder = y % x;
var quotient = Math.floor(y/x);
var remainder = y % x;
Interested in Java? Check out this Java Certification by Intellipaat.
31k questions
32.8k answers
501 comments
693 users