Function of Express.Router

What does basically Express.Router does

Read this: https://expressjs.com/en/guide/routing.html