MCQs > IT & Programming > JavaScript > What's the output? function a() {alert(x);} function b() {var x = 'function b'; a();} b();

JavaScript MCQs

What is the result of the following code snippet?

function a() {alert(x);}
function b() {var x = "function b"; a();}
b();


Answer

Correct Answer: This code snippet causes an error. 

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