You're told to clean your room. You agree but don't do it right away because you've got more important things at hand. Once you've finished with those, you either clean your room or you don't. Your cleaning the room is asynchronous task, because in a queue after the stuff you're busy with.
That's basically event loop with micro and macro tasks and pending/resolved Promises in JavaScript 🤓
You're told to clean your room. You agree but don't do it right away because you've got more important things at hand. Once you've finished with those, you either clean your room or you don't. Your cleaning the room is asynchronous task, because in a queue after the stuff you're busy with.
That's basically event loop with micro and macro tasks and pending/resolved Promises in JavaScript 🤓
I like cleaning my room.
Like? Tell me your secrets!
I do my work while I am half asleep.