Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shubham43MP/d681b985985d3f549647e9f6a681cbcc to your computer and use it in GitHub Desktop.

Select an option

Save shubham43MP/d681b985985d3f549647e9f6a681cbcc to your computer and use it in GitHub Desktop.
console related question
// Predict is output with reasoning
const xyzPromise = () => {
return new Promise((resolve) => {
resolve('A')
});
};
console.log('B');
setTimeout(() => console.log('C'), 0);
xyzPromise()
.then((message) => {
console.log(message);
});
console.log('555')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment