MCQs > IT & Programming > JavaScript > Which two values are logged by the following code? var x = 5; (function () { console.log(x); var x = 10; console.log(x); }());

JavaScript MCQs

Which two values are logged by the following code? var x = 5; (function () { console.log(x); var x = 10; console.log(x); }());

Answer

Correct Answer: undefined 10

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