1
0
dust/bench/recursion/recursion.js
2025-01-08 23:02:08 -05:00

10 lines
127 B
JavaScript

function decrement(i) {
if (i == 0) {
return "Done!";
}
return decrement(i - 1);
}
console.log(decrement(10_000));