Water (H2O) and sodium chloride (NaCl) are two different compounds with different chemical properties. Water is a polar molecule, while NaCl is a compound that dissociates into two ions, sodium (Na+) and chloride (Cl-), in water.

Polarity refers to the distribution of electric charge within a molecule or compound. Polar molecules have an uneven distribution of charge, with one end of the molecule having a slightly positive charge and the other end having a slightly negative charge. Nonpolar molecules have an even distribution of charge, with no separation of positive and negative charges.
Water is a polar molecule because it has a bent shape and contains polar covalent bonds between the oxygen and hydrogen atoms. The oxygen atom has a greater electronegativity than the hydrogen atoms, which causes the electrons in the covalent bonds to be more strongly attracted to the oxygen atom. This creates a partial negative charge on the oxygen atom and a partial positive charge on the hydrogen atoms. The polarity of water makes it a highly versatile solvent, able to dissolve many different types of compounds, including polar and ionic compounds like NaCl.
NaCl, on the other hand, is a compound made up of two ions, Na+ and Cl-. When NaCl is dissolved in water, the compound dissociates into its constituent ions. The sodium ion (Na+) has a positive charge and the chloride ion (Cl-) has a negative charge. Because the ions have charges that are opposite in sign and equal in magnitude, they are attracted to each other, forming an ionic bond. In water, the polar nature of the water molecule allows it to interact with the ions, with the oxygen end of the water molecule interacting with the positive Na+ ion and the hydrogen end interacting with the negative Cl- ion. The interaction between water molecules and the Na+ and Cl- ions leads to the dissolution of NaCl in water.
In summary, water is a polar molecule due to the presence of polar covalent bonds and its bent molecular shape. NaCl is a compound that dissociates into two ions in water, and is not polar or nonpolar in its pure form. However, the interaction of NaCl with water is due to the polar nature of water, and it dissolves in water due to the attraction of water molecules to the Na+ and Cl- ions.