Explanation:
The electromagnet is made by wrapping the coils around the soft iron. Then, pass the current through it. In this way, It will act as a temporary magnet. More the number of coils then, there will be more magnetism.
As long as the current passes through it it will retain its magnetism. When the current is stopped flowing in it then it will lose its magnetism.
In the given problem, Juan makes an adjustment to an electromagnet that causes the electromagnet to lose some of its strength. He can do this by reducing the number of loops in the wire.