Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a Promise in JavaScript?

Answer Posted / hr@tgksolutions.com

A Promise represents a value that may be available now, later, or never.
States of a Promise:
1. Pending: Initial state, not fulfilled or rejected.
2. Fulfilled: Operation completed successfully.
3. Rejected: Operation failed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class example?

1052


What is DOM? What is the use of document object?

961


Explain with an example the use of event handlers in javascript.

1011


Explain arrow functions?

950


Explain how to write class methods vs. Instance methods.

984


What is the difference between local storage & session storage?

894


What are limitations in javascript?

928


How to call a function inside a function in javascript?

923


What is difference == and === in javascript?

960


You have an asp. Net web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message validation of view state mac failed. What could be one reason that is causing this error?

949


Is javascript free to use?

926


What are the different types of errors supported by javascript?

1110


What creates scope in javascript?

1008


How you will add function as a property in a javascript object? Give an example.

973


Can array in javascript be extended?

878