Sugar, on the other hand, is composed of carbon, oxygen, and hydrogen and has covalent bonds. A salt molecule is made up of one sodium atom and one chlorine atom.