Variable Scopes

By: Dusty Arlia
Published on Wednesday, April 17, 2013, 10:07 PM
Last Updated on Friday, July 17, 2015 at 6:23 PM
Total Updates: 2

When you declare a variable and assign it a value you need to be aware of where in your JavaScript program you can access it. The issue of where in your program you can access your variable and its value is a scoping issue. Global variables can be access anywhere, while local variables can only be accessed locally.