function counting(final=100){ const initialCount = 0 return counter(initialCount) function counter(count){ if(count==final) return count