- Checks if
2 >= 4
, which isfalse
- Computes
"oday" + ____
- Calls
goAgain
with"oday".substring(2)
, which is"ay"
, and2 + 1
, which is3
Resulting call stack
g("ay", 3)
g("oday", 2) "oday" + ____
g("today", 1) "today" + ____
2 >= 4
, which is false
"oday" + ____
goAgain
with "oday".substring(2)
, which is "ay"
, and 2 + 1
, which is 3
g("ay", 3)
g("oday", 2) "oday" + ____
g("today", 1) "today" + ____