Basic Javascript: Recursion Countdown

I understand the recursion part of the countdown, but how the result was stored in the array without using brackets is confusing to me.

const arr = countdown(n-1);

hello and welcome to fcc forum :slight_smile:

  • its not possible to comment on this without seeing “countdown(n-1)”

perhaps consider sharing that as well, happy learning :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.