Advanced JavaScript Visualized by Patel Meet

Advanced JavaScript Visualized by Patel Meet

Author:Patel, Meet [Patel, Meet]
Language: eng
Format: epub
Publisher: Independent
Published: 2021-01-09T16:00:00+00:00


Now in the above code, as you can see we will be going to store the returned object of the Promise function constructor in the promiseObj variable.

Note here we have made conditional resolve and reject calls based on whether num > 5 or not .

It’s visualization time😄.

Let’s see our code again so we don’t lose track of that code in our minds.

As we can see, we have the Promise function constructor which will be used to create a promise object. but before we visualize everything, let me tell you what we will get back after executing that Promise function constructor.

Let’s see which are properties and internal properties are given to us for the promise object .



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.