Created
June 16, 2020 13:22
-
-
Save aksnell/3096f01d8193cc2865b065314056d8ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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