EPAM Systems Interview Question

Como funcionam as microtasks e macrotasks do javascript?