function 보지(n) {
var 자지 = 1;
for(i=2; i<=n; i++)
자지 *= i;
return 자지
}

console.log(보지(5));

120 이상 강의를 마친다.