I know that to create an asynchronous function all we need is to call an asynchronous function inside it like setTimeout()
and passing a callback.
But how to create that natively without using any prebuilt function to achieve that ?
I know that functions that query a database have an asynchronous behavior, how do they do that without using something like setTimeout()
in their original implementation ?