The atomic weight of sodium is 23
The atomic weight of chlorine is 35.5
The molecular weight of sodium chloride is therefore 58.5
A mole is the molecular weight in grammes
It is sometimes called the gram molecular weight.
It is important because a Mole of any chemical always contains the same (huge) number of molecules.
1 Mole NaCl is 58.5
so 23.4 gram NaCl = 23.4 / 58.5 = 0.4 Mole