In what order will the numbers 1-4 be printed to the console when the code below is executed?
(function() {
    console.log(1); 
    setTimeout(function(){console.log(2)}, 1000); 
    setTimeout(function(){console.log(3)}, 0); 
    console.log(4);
})();

Topic Statistics

25%

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

Follow Quizful

Send Feedback
or join Alpha test group