Problem Description

Show the execution order between sync code, Promise.then, and setTimeout.

Input Format

No input.

Output Format

Print lines in correct order.

Constraints

Understand microtask vs macrotask.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next