When I view result in visual studio code debugging it does not show the correct value 10 but the unitialized value, caused by the outer scoped
result
10