Promise in JavaScript

Promise in JavaScript with example

What is a Promise in JavaScript? A promise is an object and it used to handle asynchronous operations in javascript. A promise has three states: pending fulfilled rejected The Promise object supports two properties: state and result. While a Promise object is "pending" (working), the result is undefined. When a[...]

By |April 24, 2021|Tags: |
Go to Top