3 ms·
Aren't local variables scoped to be visible within the entire JavaScript function? I thought the recommendation to declare local variables at the top the functi
by cpeterso 15y ago
Aren't local variables scoped to be visible within the entire JavaScript function? I thought the recommendation to declare local variables at the top the function was a reminder (or to avoid accidental importing of global variables of the same name)?