I want to know how the recursion works in Javascript. I take an example below:
function abc(n){
document.write(n + "<br>");
if (n < 4){
abc(n+1);
document.write(n + "<br>");
}
}
My attention is at the 5th line. When will the 5th be executed? Is the 5th line executed before or after the recursion?
Thanks.