DEV Community

Discussion on: Daily Coding Puzzles - Nov 11th - Nov 16th

 
ihate1999 profile image
Abubakar Nur Khalil

True, just realized 😂

Changing the conditional expression should fix that

// ...
// Loop code
count = String(i).includes('5') ? count : count + 1