Pergunta de entrevista da empresa DIPC

1. How many types of API functions are there in Node.js ? 2. What is middleware?