# How can you describe the electron charge of an ionic compound?

Ionic compounds are of course electrically neutral, as is all matter. Ionic bonds are conceived to form by electrostatic attraction between oppositely charged ions. The classic ionic compound is sodium chloride, which is composed of $N {a}^{+}$ and $C {l}^{-}$ ions in a close packed array (these are simple binary 1:1 salts).
Alkaline earth salts such as $M g B {r}_{2}$ are formed from stoichiometric $M {g}^{2 +}$ and $B {r}^{-}$; $L {i}_{2} O$ from $L {i}^{+}$ and ${O}^{2 -}$ ions. You have to recognize the individual charges in each salt, and this is a fairly trivial exercise if you can recognize their position on the Periodic Table. Group $1$, $2$ metals give $+ 1$, $+ 2$ ions etc. On the other side of the Periodic Table, halogens (Group 17) give $- 1$ ions; chalcogens (Group 16) $- 2$.