

In what order are the messages printed?
Trace the program the way the computer would, then make your call before running anything.
console.log('sky');
setTimeout(() => console.log('star'), 0);
Promise.resolve().then(() => console.log('cloud'));
console.log('moon');