Event Loop & Microtasks
When the button is clicked, what is the output order?
const button = document.querySelector('button');
button.addEventListener('click', () => {
Promise.resolve().then(() => console.log('Microtask'));
console.log('Listener');
});