Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Created June 20, 2014 07:11
Show Gist options
  • Save macikokoro/cc8d1bf0c70a9538081d to your computer and use it in GitHub Desktop.
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.
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