Question: Given the following code, what is the base case of this function? function factorial ( n ) { if ( n = = 0 )
Given the following code, what is the base case of this function?
function factorialn
if n
return ;
else
return n factorialn ;
Group of answer choices
return
The function call itself.
factorialn
n factorialn
n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
