Medium-HardAnalyzeJavaScript Fundamentalspredict_output
What does this output? ```javascript console.log('1'); setTimeout(() => console.log('2'), 0); Promise.resolve().then(() => console.log('3')); console.log('4'); ```
Analyze — Tests ability to break down and examine complex problems.
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 34+ more JavaScript Fundamentals questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the JavaScript Fundamentals topic (Programming Languages).