|
|
|
|
|
by LogicHound
227 days ago
|
|
`var` doesn't have weird scoping issues, it just different than other languages. `var` is function scoped, thus all var declarations are hoisted to the top of the function during execution. This is why the single var pattern used to be recommended. |
|