what is a device that allows allows electric current to flow in only one direction?
A. Capacitor
B. Diode
C. Resistor
D. Transistor ​