what is a electromagnet
An electromagnet is  a type of magnet in which the magnetic field is produced by an electric current. The magnetic field disappears when the current is turned off. Electromagnets usually consist of insulated wire wound into a coil.