var fn = function(num){ if ( num <= 1){ return num; } else{ return arguments.callee(num-1)*num; }}console.log(fn(4));