An electromagnet is a device that has the property of acquiring magnetic properties when an electric current passes through its coil..
Making a homemade one is very simple as we will see now. You just need an enameled copper wire and something like a core or body, something ferromagnetic like a screw or a piece of iron.
We can differentiate materials into three types: ferromagnetic, paramagnetic and diamagnetic depending on how they behave when magnetized.
It's a experiment so simple that it is ideal to do with children and introduce them to the world of science and technology.