Question:

When executed, the below JavaScript code will pop up three alerts. Identify the corret answer?

var a = 6;
function test() {
    var a = 7;
    function again() {
        var a = 8;
        alert(a);  // A
    }
    again();
    alert(a);  // B
}
test();
​alert(a);​  // C

Answers:


Keywords:

© 2017 QuizBucket.org