Factorialize a Number Challenge has me frustrated

Tell us what’s happening:
I’be been stuck on this problem for a few days, and I’m not sure what I’m doing wrong, or why I’m not completing the challenge. I’m watching the console return the correct answer every time. Am I just not getting credit because I’m not using a specific method for completion? Thanks for the help

Your code so far


function factorialize(num) {
  var total = 1;
  while(num > 0) {
    total *= num;
    num--;
    console.log(total);

  }
  return num;
}
factorialize(5);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.

Link to the challenge:

Check what you are console.logging versus what you’re returning.

I feel like an idiot now. I was so frustrated that I was looking over simple mistakes like that.