When there is a whole transfer of valence electron between the atoms is called an ionic bond. In this type of bond construction, the atoms get contrarily charged.
The ionic bonds are formed due to electronegativity. According to Pauling, the capability of an atom to draw electrons towards itself is called electronegativity.
When there is a huge contrast in electronegativity between the atoms, the electrons are completely transferred between the atoms.
The atom that relinquishes an electron are called a cation and is positive whereas the atom that acquires an electron are called anions and are negatively charged.
Therefore, due to electronegativity, ionic bonds are formed.
To learn more about ionic bonds follow the link:
https://brainly.com/question/14484184