Answer
The difference between the two magnetic fields is that the magnetic field of the bar magnet is permanent, while the magnetic field of the electromagnet is temporary. Additionally, the magnetic field of the bar magnet is strongest at the poles, while the magnetic field of the electromagnet is strongest at the center.