Mass has units of kilograms and does not change with gravity. A 10 kg object will still have a mass of 10 kg on the moon.
Weight is the force on an object due to gravity. It is given by the mass multiplied by theaccelerationdue to gravity. It is a force and is measured in units of Newtons.
Weight=mass⋅acceleration due to gravity=m⋅g
So weight depends on the acceleration due to gravity, which depends on the gravity of the planet or moon you are on.
On Earth, the standard value for the acceleration due to gravity at the surface is
g=9.81 m/s^2
On the moon,
g=1.63 m/s^2
Therefore, an object with a mass of 10 kg has different weights on Earth and the Moon:
Weight on the Moon=10×1.63=16.3 N
Weight on Earth=10×9.81=98.1 N
But its mass is the same in both places. W = mg g = 0 at the centre of the earth. Therefore the weight of the body is also zero at the centre of the earth