A question about recursion in algos on freecodecamp

I tried using recursion in factoralize but it did not work, i had to use loop to get it approved - do recursion not work on freecodecamp?

A recursive algorithm should work. Can you post your code?

function factorialize(num) {

if(num===0){
return 1;
}
else{
return num*factorialize(num-1);
}
}

That seems to work fine. What kind of error did you get? Check this:

cut & paste of your code

I ran it and it does pass all the tests.
Factorialize a Number

Your provided solution does pass for me on FreeCodeCamp. I would guess that something is causing the tests not to re-run when you click “run tests”. You can try using the “reset” button, clearing your local cache, or submittingin incognito mode.