What is a Promise in JavaScript?
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 |
What is the Difference between HTML and DHTML
what is onfocus and onblur events in java script?
What is the use of history object?
What are a fixed-width table and its advantages in javascript?
what is runnable interface
What is the use of anonymous function in javascript?
What is the difference between an array and an object?
How can I prevent others from reading/stealing my scripts or images?
What are anonymous functions in Javascript?
Does html5 replace javascript?
How do I open a website code?
Write a javascript program to make a simple calculator