Mass is a fundamental property of an object that represents the amount of matter it contains. It is an intrinsic property and remains constant regardless of the location of the object in the universe. In other words, the mass of an object does not change whether it is on Earth, Mars, or any other celestial body.
On the other hand, weight is the force exerted on an object due to the gravitational attraction between the object and the planet or celestial body it is on. Weight is dependent on both the mass of the object and the strength of the gravitational field acting upon it. The formula to calculate weight is W = Mg, where W represents weight, M represents mass, and g represents the acceleration due to gravity.
Since the strength of the gravitational field varies from planet to planet, the weight of an object will differ depending on the specific celestial body it is located on. For example, the weight of an object on Mars will be different from its weight on Earth due to the difference in the strength of gravity on the two planets. However, the mass of the object will remain the same.