Weight is a type of force which attracts things towards the center of earth. Weight is measured in Newton. Weight depends on the gravity of earth. Weight changes due to change in height. Value of gravity is higher at the center of earth and six times lower at the moon because of no gravitational force of earth.
Electromagnet is an electrical component that when powered emits a magnetic field based on the amount of current provided. this is the same principal that runs induction motors