What affects the strength of an electromagnet?

The strength of an electromagnet depends on

-- the magnitude of the electric current in the wire coil,

-- the number of turns of wire in the coil,

-- the composition of the material in the core surrounded by the coil.