You misunderstand. !!!!
Magnesium is an ELEMENT.
As an element it exists as atoms in a metallic lattice.
When combined with another element e.g. oxygen as magnesium oxide, (MgO), then it is an ionically bonded molecular compound.
Mg^(2+) + O^(2-) = MgO(s)
Mg is the scientific symbol for the element magnesium :)
MgBr2 is an ionic compound (salt: magnesium bromide)
According to wikipedia, Magnesium Oxide is an ionic compound.
Magnesium oxide is an ionic compound with the formula MgO.
Magnesium oxide, or MgO, is an ionic compound: the result of a metal reacting with a non-metal.
MgOH2 is neither a molecule nor a compound. Reason ; no such substance exists. If you mean ' Mg(OH)2 '. Then it is an ionic molecule. The ions being Cation ; Mg^(2+). Anions ; 2 x OH^(-) Within the anion the O & H are combined covalently. NB The formula for magnesium hydroxide is ' Mg(OH)2 ' . Note the brackets and the position of the '2'. As given MgOH2 wouls indicate 1 x oxygen and 2 x hydrogen. No such molecule exists. NNB 'molecule', ionic' , 'compound' . To clarify Compound ' a combination of atoms Molecule ' ONE Cohesive unitary group of combined atoms/ Ionic ' The method of combination, to form a molecule.
Pure ionic in Mg(OH)2 = Mg2+ and 2 OH-
MgBr2 is an ionic compound. Magnesium (Mg) is a metal and bromine (Br) is a non-metal, so they form an ionic bond by transferring electrons.
MgCl2 is an ionic compound. It is composed of magnesium cations (Mg2+) and chloride anions (Cl-), which are held together by ionic bonds.
Because magnesium has a low electronegativity and chlorine has a high electronegativity, magnesium tends to lose an electron and chlorine tends to gain an electron when these substances react. This results in the formation of magnesium and chloride ions. Thus, magnesium chloride is ionic.
Magnesium oxide is ionic.
Molecular compound