Add question for function definition iside for loop and block level scope