Proto&Type is a blog about UX, Interaction Design, and the Web.JavaScript’s scoping rules are pretty darn simple, but they make for a few implications that surprise novice and experienced developers alike. Luckily, most of those implications can be detected through static code analysis. We can use a tool like Esprima to do our scope analysis. Esprima is a JavaScript parser that builds a pretty det
