Here's why:
* Diodes are electronic components that allow current to flow in only one direction. This is because they have a PN junction (a region where a P-type semiconductor meets an N-type semiconductor).
* The PN junction acts as a barrier to current flow in one direction (reverse bias) but allows current to flow easily in the other direction (forward bias).
Other devices that can change the direction of current include:
* Transistors: Can be used in various configurations to control the direction of current flow.
* Relays: Electromagnetic switches that can change the path of current, often used to control larger loads.
* Solid-state switches: Electronic devices that can switch the flow of current on and off, and in some cases, change its direction.
However, the most direct and common answer is a diode.