Play-with-JavaScript A JavaScript repository for all of my JavaScript practice codes Recursion --- // Define the function function sum(i){ if (i==0){ return "Zero" } if (i==1){ return 1; } return sum(i-1) + i; } # call the function console.log(sum(0));