Dear Student,
The term molecule or compound best defines two or more atoms joined by a chemical bond.
Molecule is formed when two atoms of same element are joined together, e.g., H2, O2
Compound is a substance formed when two or more chemical elements are chemically bonded together, e.g., H2O, CO2
Regards