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 |
Explain the for-in loop?
How can I learn coding fast?
Is html and javascript the same?
Why do we need hoisting in javascript?
What is the syntax of ‘self invoking function’? Give an example?
What would be the result of 2+5+”3″?
Why do we need to declare variables?
Is javascript a programming language?
What is a prompt box in javascript?
How would you check if a variable is null/undefined?
What's the Difference Between Class and Prototypal Inheritance?
What is the difference between the keywords var and let?