Promises JS
Promises JS
JAVASCRIPT
PROMISES
Yasith Wimukthi
Understanding Promises
Promise.prototype.constructor : The
constructor function that created the instance
object. For Promise instances, the initial value
is the Promise constructor.
Promise.prototype[@@toStringTag] : The initial
value of the @@toStringTag property is the
string "Promise". This property is used in
Object.prototype.toString().
Promise Instance Methods