Open kartamyshev opened 4 years ago
countDown(5) // logs 5, 4, 3, 2, 1
function countDown (number) { if (number === 0) { return; } console.log(number); return countDown (number - 1); }