complexity: 2 ; importance: 8; author: docentmail
Javascript Variable Scope.
Problem 2016-01-17-00-27
Question: What would be result of execution of the snippet?
var theVar = 'value1';
function func1() {
var theVar="value1";
function func2() {
alert(theVar);
}
func2();
}
func1();