MCQs > IT & Programming > JavaScript > What's the output? (function(){ var a = b = 3; })(); console.log(' a defined? ' + (typeof a !== 'undefined'));)) console.log(' b defined? ' + (typeof b !== 'undefined'));))

JavaScript MCQs

What will the code below output to the console? (function(){ var a = b = 3; })(); console.log(" a defined? " + (typeof a !== 'undefined'));)) console.log(" b defined? " + (typeof b !== 'undefined'));))

Answer

Correct Answer: a defined ? false b defined ? true

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