Given this code, predict the output order and explain why: console.log('1'); setTimeout(() => console.log('2'), 0); Promise.resolve().then(() => console.log('3')); console.log('4');

TechnicalFrontend DeveloperFrontend Angular developerJavaScript DeveloperWeb Developer