Hey, pardon for the late reply. Yes, it happens in the execution context. Thanks for reminding, I think I forgot to mention this term in the article! By the way, I think you may have mistaken for the output, after executing, the output seems to be:
Here is how it happens:
I never tried my code. I thought process.nextTick will be push to event loop and setImmediate will run next since its in the higher or outer execution context.
anyway thanks for explaining. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.