itpastorn/programmering-1-med-js — Issue #9: making globals explicit
Author: Raynos
Created: 2012-01-13 14:24:46+00:00
State: open

> Want to use that global? (You shouldn't...)
> var a = 8;

It's a good pattern to use `window.a = 8` instead of `var a = 8;` in the outer scope. This helps readability.