What will be printed to console after executing the following code?

(function(){
  var x = y = 5;
})();

console.log("x defined? " + (typeof x !== 'undefined'));
console.log("y defined? " + (typeof y !== 'undefined'));

Topic Statistics

25%

  • 75Right (%)
  • 25Wrong (%)
to get statistics

Follow Quizful

Send Feedback
or join Alpha test group