a diode is a two-terminal electronic component that conducts primarily in one direction resistance to the flow of current in one direction, resistance in the other. A semiconductor diode the most common , is a crystalline of semiconductor consist of material with a p–n junction connected to two electrical terminals. A vacuum tube diode has two electrodes, a plate (anode) and a heated cathode. Semiconductor diodes were the first semiconductor electronic devices.