What is a diode?

A diode is a component that restricts the directional flow of charge carriers. Also a diode allows an electric current to flow in one direction, but blocks it in the opposite direction