The what of an electromagnet is determined by the direction of current flow?
The polarity of an electromagnet is determined by the direction of current flow. When current flows one way, the magnetic field is oriented in one direction, and when it flows the other way, the magnetic field is oriented in the opposite direction.