Comment Comment by LogicHound `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. parent LogicHound 1 year ago
This is why the single var pattern used to be recommended.