Javascript variable scope is something of a strange thing. You have a global and a function scope. But unlike most other languages, there is no block scope! Find out why this is often cause for hard to find bugs.