function fakultet(tal) { if (tal === 0) return 1; return tal * fakultet(tal-1); } alert(fakultet(5));