Javascript Algorithms

28 May 2019

#at least one base case and one recursive case Count from 1 - 10 using a recussion function counter(n) { console.log(n); if (n == 10) return;

return counter(n+1); }

counter(0);

comments powered by Disqus