Return the factoral of n.
if(n<1){ return 0; // Number } var ret=1; for(var i=1; i<=n; i++){ ret*=i; } return ret; // Number