Sodium, with a total of 11 electrons, has only one electron in its third and outermost shell. Valence electrons occupy in the outermost shell of an element. Sodium is the third from the top in this group. The sodium atom now has a positive electrical charge of plus 1, and the other atom has a negative charge of minus 1. The two opposite charges attract, and the two atoms now form the molecule of a compound.