Question 6
Consider the following JavaScript code snippet?
What will be the output of above code on the browser’s console?
1 → 2 → 3: done → 4
1 → 4 → 2 → 3: done
1 → 2 → 4 → 3: done
1 → 2 → 4 (3 never prints due to unresolved promise)
Consider the following JavaScript code snippet?
What will be the output of above code on the browser’s console?
1 → 2 → 3: done → 4
1 → 4 → 2 → 3: done
1 → 2 → 4 → 3: done
1 → 2 → 4 (3 never prints due to unresolved promise)
Correct answer
1 → 2 → 4 → 3: done
Question 6 of 15 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term (Modern Application Development Ii 14 Aug 26). It carries 3 marks.