// Only change code below this line
function countdown(n){
if (n < 1) {
return [];
} else {
const countArray = countdown(n-1);
countArray.unshift(n);
return countArray;
}
}
console.log(countdown(5))
// Only change code above this line
I don’t understand how countArray was become a table.
My question is simple, how the table is create ?