Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Created June 19, 2014 07:46
Show Gist options
  • Save macikokoro/e4ebd02deed1f55e189d to your computer and use it in GitHub Desktop.
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.
var isMultipleOfThree = function (x) {
return x % 3 === 0;
};
var isNotMultipleOfThree = function (x) {
return !isMultipleOfThree(x);
};
@macikokoro
Copy link
Author

The ! symbol in the second function is used to express not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment