Skip to content

Instantly share code, notes, and snippets.

@AliceWonderland
Forked from anonymous/2.1 isDivisible.js
Created April 6, 2017 04:33
Show Gist options
  • Save AliceWonderland/3a62b16941158605a55820edd5f78af0 to your computer and use it in GitHub Desktop.
Save AliceWonderland/3a62b16941158605a55820edd5f78af0 to your computer and use it in GitHub Desktop.
2.1 isDivisible created by smillaraaq - https://repl.it/GvFi/2
function isDivisible(num1, num2){
var output=num1%num2;//console.log(output);
if(num1===undefined || num2===undefined){
console.log("argument undefined");
return null;
}else if(output===0){
return true;
}
else{
return false;
}
}
isDivisible();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment