Answer:
<span>In ionic compounds, <u>Metals</u> lose their valence electrons to form positively charged Cations.
Explanation:
Metals have the ability to loose elctrons readily. For example metals of Group IA and Group IIA readily looses electrons in order to obtain Noble Gas Configuration. On the other hand Non-metals tends to gain electrons and acquire negative charge. While Ions are made when an an element gain or loose electrons. After loosing electrons element get positive charge which is called as Cation while on gaining electron it gets negative charge called as Anion.</span>
The first molecule is a sensible molecule having complete octet of each atom such as C, H and O whereas the second molecule having hydrogen present between the aldehyde and methyl group and thus showing hydrogen is making bond with aldehyde and methyl as well which is not possible because hydrogen only having one electron in its octet due to which it can only form a single bond by sharing its valence electron.