Define valence electrons.
Valence electrons are the number of electrons an atom must lose or gain to attain the noble gas configuration.
Electrons in the outermost orbit give us the valence electrons.
For example, sodium has an atomic number and electronic configuration as . The outermost shell has an electron, so one valence electron is present in sodium.