Medium
You're building a music player that needs to handle multiple async operations. What will be logged to the console?
1console.log('🎵 Starting playlist');23setTimeout(() => console.log('🎸 Loading guitar track'), 0);45Promise.resolve()6 .then(() => console.log('🎹 Loading piano track'))7 .then(() => console.log('🥁 Loading drums track'));89new Promise(resolve => resolve('🎺 Loading brass track'))10 .then(console.log);1112console.log('🎼 Initializing audio engine');