JavaScript Variable Scope: Local and Global Variables ![[Registration never required for free content]](/images/free.gif)
By: Estelle Weyl on Thursday, February 5, 2009
Reader Level: 
In writing JavaScript functions, variable functions can trip you up. A common error is overwriting a global variable because the variable in a function didn't have local scope.
If that last sentence didn't make any sense, then this article is for you.
This article covers tips and tricks for understanding variable scope in JavaScript.