MCQs>IT & Programming>JavaScript>What's the output? and why? (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 and why? (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