Electrons in the outer shells that are not filled are called valence electrons. From the Bohr-bury scheme, we can say that the outermost shell can contain a maximum of 8 electrons.
It has five electrons in its outer shell, most of its compounds are trivalent.
Nitrogen has either 3 or 5 valence electrons and is on the periodic table at the top of Group 15. It can have either 3 or 5 valence electrons, as it can bond in the 2p and 2s orbitals outside. Nitrogen makes up DNA both in the form of nitrogen bases and in neurotransmitters.