Question:

What is the result of the below JavaScript code when the functions get called in the order as mentioned?

var a = 5;
function first() {
    a = 6;
}

function second() {
    alert(a);
}

Answers:


Keywords:

© 2017 QuizBucket.org