Recently I came across this question and in the comment section, there was an argument regarding the formula of sodium hypoiodite which kept me wandering: what is the actual formula of alkali hypohalite: MOX or MXO?
There seems to be an inconsistency in the formula, somewhere. Somewhere it is written as MOX and in othersome places, it is written as MXO. In the wikipedia article of sodium hypochlorite, sometimes it is written $\ce{NaOCl}$ and at sometimes it is written $\ce{NaClO}$. This is what was written in the briefGoogle gives when you search sodium hypochlorite:-
I think the formula of alkali hypohalite should be MOX because since the negative charge bears over the oxygen atom, it accepts the electron coming from the alkali metal ion and forms a duplet and thus thus forming ionic bond.
Is my assumption correct? What is the correct formula of alikalialkali hypohalite?