Function test (n) if n = 1 Test = 1: exit functiontest = test (n-1) * Nend FunctionAlert (Test (4)) Alert (Test (5)) script> TEST (3) ↓ Test (2) * 3 ↓ Test (1) * 2 Because Test (1) = 1 So from the back to the front, Test (1) * 2 * 3 = 6test (4) ↓ Test (3) * 4 ↓ Test (2) * 3 ↓ test (1) * 2 Because Test (1) = 1, from the back to the front. Test (1) * 2 * 3 * 4 = 24
TEST (5) ↓ Test (4) * 5 ↓ Test (3) * 4 ↓ Test (2) * 3 ↓ Test (1) * 2 Because Test (1) = 1 So from the back to the front. Test (1) * 2 * 3 * 4 * 5 = 120