Created
June 19, 2014 07:46
-
-
Save macikokoro/e4ebd02deed1f55e189d to your computer and use it in GitHub Desktop.
Function to check if a number is a multiple of 3 and a function to check for the opposite.
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 isMultipleOfThree = function (x) { | |
return x % 3 === 0; | |
}; | |
var isNotMultipleOfThree = function (x) { | |
return !isMultipleOfThree(x); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ! symbol in the second function is used to express not.