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 material with consist of a P type(Positive) – N type(Negative) connected to two electrical terminals. diode has two electrodes,
anode (+) and a cathode(-).