Is remainder equals to 0
The given parameters are n1 and n2, the function needs to judge whether there is a remainder after n1 is divided by n2.
Sample Code:
function isDivisible(n1,n2) {
// Enter your logic here...
}
Examples:
Input: 1,2
Output: false
Explanation: 1 divided by 2 has a remainder, returns false.
Input: 2,1
Output: true
Explanation: 2 divided by 1 has a remainder of 0 and returns true.