What is a diode?

It is a semiconductor device with two terminals, typically allowing the flow of current in one direction only. It may also be termed as the electronic component with two electrodes known as the anode and the cathode. Most diodes are made with semiconductor materials such as silicon, germanium, or selenium. The diode acts as a valve in the electronic and electrical circuit.