Molecules are subject to molecular bonds. Something like table salt ( NaCl) is a compound because it is made of more than one type of element (sodium and chlorine), but it is not a molecule because it is an ionic bond that holds NaCl together. We can say sodium chloride is an ionic compound.