Explanation
In an electronic circuit, a diode is used to allow electric current to flow in only one direction and block the current in the opposite direction.