Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is a Promise in JavaScript?

  1. A A guarantee that code will not throw
  2. B An object representing the eventual completion or failure of an asynchronous operation
  3. C A synchronous callback
  4. D A type of loop
Answer

An object representing the eventual completion or failure of an asynchronous operation

A Promise is pending, then settles once as fulfilled or rejected and never changes again. async/await is syntax over the same objects.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as