For anyone who is expert in both Javascript and C#:
Can we think of JS closures the way we think about Private and Public Properties in c#?
A closure refers to an inner function (public property) that has access to the parent function's variables (private fields), even when the call to the Parent function is completed.
Without the inner function, the scope of the variable in the parent function ceases once the parent function is done executing. Therefore, it seems that one way to access the "private" variables of the parent function is via the "public" inner function which maintains access to the "private" variables of the parent function.
Does this sound about right for a C# guy trying to make sense of Javascript closures?