Created
June 20, 2014 07:11
-
-
Save macikokoro/cc8d1bf0c70a9538081d to your computer and use it in GitHub Desktop.
Function to check if the quarter of a number is divisible by three.
This file contains hidden or 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
var quarter = function(number) { | |
return number/4; | |
} | |
if (quarter(24) % 3 === 0 ) { | |
console.log("The statement is true"); | |
} else { | |
console.log("The statement is false"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment