Why an immidiately resolved promise is faster then an immediate timeout?

Why an immediately resolved promise is processed faster than an immediate timer?

Because of the event loop priorities dequeuing jobs from the job queue (which stores the fulfilled promises’ callbacks) over the tasks from the task queue (which stores timed out setTimeout() callbacks).

#javascript #programming #developer

Why Promises Are Faster Than setTimeout()?
2.50 GEEK