when i call promise object's then method, it will schedule to Microtask queue asynchronously.
Promise Docs
I was going through it. Why docs did not mention about Microtask queue?
It should be clearly mentioned that then and catch call adds Microtask to Microtask Queue.