The advantages of electromagnet over a permanent magnet is/are
Ectromagnet's magnetic strength can be changed.
The polarity of an electromagnet can be changed.
An electromagnet is a temporary magnet made from a piece of soft iron when current flows in the coil wound around it. It produces the temporary magnetic field as it produces the magnetic field so long as current flows in its coil. The polarity and magnetic strength of an electromagnet can be changed by reversing the current and increasing the current in the coil respectively.