Skip to content

Instantly share code, notes, and snippets.

@craigmdennis
Created November 1, 2011 16:52
Show Gist options
  • Save craigmdennis/1331149 to your computer and use it in GitHub Desktop.
Save craigmdennis/1331149 to your computer and use it in GitHub Desktop.
Return true if one number is a multiple of the other
// Return true if it is a multiple
function multiple(int, multipleOf) {
var remainder = int % multipleOf;
if (remainder === 0) {
return true;
} else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment