After looking around, I'm still not too clear on this.
function() {
var a = 'foo';
a = 'bar';
}
I'm attempting to update the value of a variable here. Since the variable is already declared with "var", does my second line only update the variable, or does it also make it global?