Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 5, 2016 02:46
Show Gist options
  • Save codecademydev/aa30cd1ded3b6590a4ffb8027f813456 to your computer and use it in GitHub Desktop.
Save codecademydev/aa30cd1ded3b6590a4ffb8027f813456 to your computer and use it in GitHub Desktop.
Codecademy export
// Here is an array of multiples of 8. But is it correct?
var multiplesOfEight = [8,16,24,32,40,58];
// Test to see if a number from the array is NOT a true
// multiple of eight. Real multiples will return false.
var answer = multiplesOfEight[5] % 8 !== 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment