complexity: 2 ; importance: 8; author: docentmail


Javascript Variable Scope.

Problem 2016-01-17-01-01

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

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

func1();

alert(theVar);