The weight of an object, however, can change depending on location. Weight is a measure of the force of gravity acting on an object, and gravity is affected by the mass of the object it is acting on and the distance between the two objects. The greater the mass of an object, the greater its gravitational pull. The closer two objects are to each other, the stronger the gravitational pull between them.
Therefore, an object will weigh more on Earth than it would on the Moon, because Earth has a greater mass than the Moon. However, the mass of the object would be the same in both locations.