* Sodium (Na) is a metal and has a tendency to lose one electron to achieve a stable electron configuration. This makes it a cation with a +1 charge (Na+).
* Bromine (Br) is a nonmetal and has a tendency to gain one electron to achieve a stable electron configuration. This makes it an anion with a -1 charge (Br-).
The strong electrostatic attraction between the positively charged sodium ion (Na+) and the negatively charged bromine ion (Br-) results in the formation of an ionic bond. This bond forms a stable compound called sodium bromide (NaBr).