The study of the nervous system, including the structure and function of neurons, synapses, and neural circuits.