What is a router and what it does do in Computer Network?

what is a router in computer networking

A router is a networking device that basically forwards data packets between computer networks. Routers operate at the network layer (layer 3) of the OSI (Open Systems Interconnection) model, which is responsible for routing traffic between different networks