Back to Freecodecamp

Step 1

curriculum/challenges/english/blocks/workshop-countup/69446f18fdcb11aa516f7c5c.md

latest540 B
Original Source

--description--

In this workshop, you will be creating a countup function, that creates an array with numbers from 1 to a given number using recursion.

Start by creating an empty function named countup that takes a single parameter.

--hints--

You should have a function named countup.

js
assert.isFunction(countup);

Your countup function should accept a single parameter.

js
assert.strictEqual(countup.length, 1);

--seed--

--seed-contents--

js
--fcc-editable-region--

--fcc-editable-region--