The function of neurons is fixed: they sum signals from the synapses, and if that sum reaches a certain threshold, they generate an action potential or spike that propagates through the axon.