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