complexity: 2 ; importance: 8; author: docentmail


Javascript Variable Scope.

Problem 2016-01-17-01-18

Question: What would be the result of execution of the snippet?

function func1() { 
      var theVar="value1";
}

func1();
alert(theVar);