What is the difference between peripheral and cns?

The peripheral nervous system (PNS) resides or extends outside the central nervous system (CNS), which consists of the brain and spinal cord. The main function of the PNS is to connect the CNS to the limbs and organs, while the CNS provides coordination for the rest of the body.