It seems easier to understand if it is expanded from where it terminates:
//Expanded oncefunction factorial(n){ if(n==0) {return 1} else if(n==1) {return 1} else {return n*factorial(n)}}
Cleaned up your code formatting for you.
How did you add the code tag to the html?
Type ``` on an empty line, then press enter.
//Triple grave accent, enter.Thanks!
It seems easier to understand if it is expanded from where it terminates:
Cleaned up your code formatting for you.
How did you add the code tag to the html?
Type ``` on an empty line, then press enter.