What will be the output of this code snippet?
var foo = 10;
bar = 3;
(function() {
var foo = 2;
bar= 1;
}())
bar = bar + foo;
alert(bar);
Correct Answer:
11
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions