Created
April 6, 2017 04:33
-
-
Save anonymous/18a667d31cf89a2b12d13401284c4855 to your computer and use it in GitHub Desktop.
2.1 isDivisible created by smillaraaq - https://repl.it/GvFi/2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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