You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/src/pages/concepts/async.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ XHR is used mainly in AJAX programming
61
61
### 3. Show the working of promise along with resolve & reject code
62
62
63
63
- The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value
64
-
- Promise returns an object which ramains in pending state until it is resolved or rejected
64
+
- Promise returns an object which remains in pending state until it is resolved or rejected
65
65
- Promise takes a function as an argument called as 'resolver' which can have resolve and reject as parameters
66
66
- Resolve call will resolve the promise and reject will reject the promise (passing data is optional)
67
67
-`then` method on promise object is used to execute the user code after promise settles, which takes functions where 1st one is for success and 2nd for failure
0 commit comments