Firstly you need to know the composition of salt.
Salt is made of Sodium and Chloride and is ionically bonded.
Ionic bonding is a type of chemical bonding that involves electrostatic attractions between oppositely charged ions ( e.g Na+ and Cl-).
Therefore salt is bonded by ionic bond.