These have three states: pending, requesting information to the API; fulfilled, we got a resolved answer; and rejected, the answer was denied due errors.
To manage these answers and work after then, we have “. then” and “.catch”, for fulfilled and rejected cases. But also, there is available the sugar syntax of “Async/Await”. This syntax will complete the promise and wait for the response, if there are more promises it will follow the order they were declared.
Promises are objects and so they count on methods, like “.all”, makes a parallel petition; or “.race”, it will take the faster answer among promises.
The set syntax binds an object’s property to a function to be called when there is an attempt to set that property.
The get syntax binds an object property to a function to be called when that property is looked up.
Conclusion: set and get are pseudo-properties of the object that through function access the real properties of the object, to read a value, or to set a value. But we can access to the original properties through this pseudo-properties only.