Microtask With Promise.resolve
NodeJS
Easy
4 views
Problem Description
Queue a microtask using Promise.resolve().then and print order.
Output Format
Print lines.
Constraints
C runs after sync.
Official Solution
console.log('A');
Promise.resolve().then(() => console.log('C'));
console.log('B');
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!