<prompt> Tekeleza chaguo la kukokotoa la JavaScript ambalo hukokotoa kipengele cha nambari fulani kwa kutumia urejeshaji.  <response>: utendakazi factorialn ikiwa n 0 n 1 kurudi 1; nyengine kurudi n factorial n - 1; console.logfactorial5; Pato: 120 