They form ions which bond to form sodium chloride ... Here are some other examples of dot and cross diagrams for the formation of ions in some ionic compounds – magnesium oxide and calcium ...
We can use dot and cross diagrams to show how a pair of electrons forms a covalent bond. Here are the dot and cross diagrams for some other common molecules.