MCQs > IT & Programming > JavaScript > Resulting value of c in the code? var a; function b(){ var b = 'b' a = function(){ return b; } } b(); c = a();

JavaScript MCQs

What is the resulting value of c in the following code snippet?

var a;
function b(){
  var b = "b";
  a = function(){
    return b;
  }
}
b();
c = a();


Answer

Correct Answer: b

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it