![]() |
Promises in JavaScript are a way to handle asynchronous operations. They have three states: pending, fulfilled, and rejected. You create a promise using the Syntax:let promise = new Promise(function(resolve, reject){ Example: This example shows how to create a basic promise object. Javascript
Output
Success, You are a GEEK |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |