Javascript: Write out the call stack for this program if x is 3.
function factorial(x) {if (x === 0) {return 1;}return x * factorial(x-1);}console.log(factorial(x));
Use "not in function" if not in a function, and put the function name along with the arguments if in a function.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here