11. How many types of API functions are there in Node.js?

There are two types of API functions:

Asynchronous, non-blocking functions – mostly I/O operations which can be fork out of the main loop.

Synchronous, blocking functions – mostly operations that influence the process running in the main loop.

Leave a Reply