Function pointers point to the address of the executable code of the function. You can use pointers to call functions and to pass functions as arguments to other functions.
A promise is an object that may produce a single value some time in the future: either a resolved value, or a reason that it’s not resolved (e.g., a network error occurred). A promise may be in one…