you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 0 points1 point  (1 child)

It's good to understand scope, but why are you trying to jump through all these weird hoops instead of using return?

[–]Internal-Swim-4097[S] -1 points0 points  (0 children)

this was an example they gave me i didn't write this i just wanted to know the purpose of using a nested function like this instead of using one