Problem in Factorialize a Number

want to know whats wrong with my code and why iam not passing the test even iam getting the results exactly right

var fact=1;
function factorialize(num) {
        for(var i =1;i<=num;i++){
          
          fact *=i;
}
        
          return fact;
}

factorialize(0);

that was pretty helpful … Thanks