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 will be the output of the code below? var Y = 1; if (function F(){}) { y += Typeof F;</span> } console.log(y);
What is the way to get the status of a CheckBox?
What are JavaScript Cookies?
How do you know if a set of points is a function?
What is difference between local and global scope in javascript ?
What is unescape() function?
What are the security related issues in JavaScript scripts?
Define event bubbling?
what does javascript null mean?
Which built-in method returns the characters in a string beginning at the specified location?
What is the dollar sign in javascript?
What is variable typing?