Calculate the factorial of a number using JavaScript - 30 seconds of code

Calculate the factorial of a number using JavaScript - 30 seconds of code

More to explore

Based on this image's title: “Calculate the factorial of a number using JavaScript - 30 seconds of code