You need to look up the molar mass of H and Cl. Those are expressed in g/mol. You can find those on a periodic table.
M does not define mass. It defines quantity (unit-less count) for a given volume.
M = mol/L (the latter is the preferred usage under newer IUPAC standards for the very...