Posts by Bruno Valle • 11 points
1 post
-
1
votes3
answers129
viewsQ: Recursion - add numbers to an array
I am taking the course of Freecodecamp and on the subject of recursiveness I came across this code: function countup(n) { if (n < 1) { return []; } else { const countArray = countup(n - 1);…