They have the same amount of particles.
If you convert 80g to moles, you will find that 80g of diatomic bromine is 1 mole.
The scientific meaning of salt is an ionic compound that is formed when an acid and a base reaction take place and is neutralized.
The common meaning of salt (table salt) is specifically the organic mineral of sodium chloride (NaCl) and is digestible.
Ionic salts are often not digestible (or not commonly digested, anyway)