after line 1 why didn’t it execute inner function since it coming under outer function body and went straight to line 8?
Doubt in function call
It is because the inner function is just “defined” within the outer function. When you define a function, say globally, you know that it does not get executed unless you call it. Same is true for functions defined inside another function.
