← Back to JavaScript exercises

6. Factorial

Result appears here
let f=1;for(let i=2;i<=5;i++)f*=i;output.textContent=f;