Skip to content

Instantly share code, notes, and snippets.

@aksnell
Created June 16, 2020 13:22
Show Gist options
  • Save aksnell/3096f01d8193cc2865b065314056d8ef to your computer and use it in GitHub Desktop.
Save aksnell/3096f01d8193cc2865b065314056d8ef to your computer and use it in GitHub Desktop.
function dontGiveMeFive(start, end)
{
let count = 0;
for (index = start; index < end + 1; index++) {
if (!index.toString().includes('5')) {
count++;
}
}
return count;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment