

An electromagnet operates through electricity and can be dynamically adjusted in strength by altering the electric current flowing through it, a feature distinct from permanent magnets.
Moreover, the polarity of an electromagnet can be inverted by reversing the direction of the electric current.
