Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/day4.js Secret

Created June 16, 2017 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/ef09e25757c0b6e502cece2c203bd06e to your computer and use it in GitHub Desktop.
Save jezinka/ef09e25757c0b6e502cece2c203bd06e to your computer and use it in GitHub Desktop.
console logging
for (i = 0; i < checksum.length; i++) {
if (checksum[i] === finall[i]) {
sumId += id[i]
} else {
console.log(checksum[i] + " <> " + finall[i]);
}
}
// 89274 - zły wynik
console.log(sumId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment