Javascript Scopes and Immediate Functions

Javascript scopes. Always a source of confusion, explanations and counter explanations. Even if I write this for my own and selfish future reference, here it is what one should have in mind when coding/debugging Javascript code, related to scoping. more ...