executor: The executor can be the custom code that ties an outcome to a promise. You, the programmer, write the executor.
Return Value: Another promise object, in which case the promise gets dynamically inserted into the chain.
Example 1: Creating only one promise constructor.
Example 2: In this code we are going to create two promise constructors.
Example 3: Display a value