In Hans Oersted’s experiment, why did a compass needle move when an electric current flowed through a nearby wire?
A. The compass conducted electricity.
B. The current created a magnetic field around the wire.
C. The compass was broken.
D. The current changed Earth’s magnetic field.