What are ionic and molecular compounds? Give examples

What are ionic and molecular compounds? Give examples.

Answer:
Atoms of different elements join together in definite proportions to form molecules of compounds. For example, water, ammonia, carbon dioxide. Compounds composed of metals and non-metals contain charged species. The charged species are known as ions. An ion is a charged particle and can be negatively or positively charged. A negatively charged ion is called an anion and the positively charged ion is called cation. For example, sodium chloride, calcium oxide.