JavaScript Recursion Lab

66.7% Acceptance

In this lab, you are going to create a JavaScript function called 'factorial' using recursion. The function should take an input parameter called 'n' and compute the factorial of 'n'. The factorial is a mathematical operation that finds the product of all positive integers less than or equal to 'n'. It is denoted by 'n!'. For example, 5! = 5 * 4 * 3 * 2 * 1 = 120. You will also need to export this recursive function from the 'index.js' file using the ESM syntax.