What happens when a magnesium ion is attracted to a chlorine ion?
O
A. They form a covalent bond.
B. They form an ionic compound.
O
C. They share electrons.
O
D. They form a gas.