The nervous system has two main branches: the central nervous system (yellow) and the peripheral nervous system (orange). The central nervous system consists of the brain and spinal cord. The rest of the nervous system is the peripheral nervous system, which connects the CNS to the rest of the body.