The mass of a body is the amount of matter it contains. It is not dependent on where the body is. It will always be constant no matter the place as matter cannot be created or destroyed. However, weight is a force. This force is determined by two factors. They include the mass of the object and the pull of gravity on that object.
Hence if you increase either of the factors, the total weight will increase. Now, the pull of gravity is lower on the moon than on the earth. Hence, the mass will be same on both places. However, the weight will be more on earth.