why are LEDs of some colors are more expensive than LEDs of other colors?
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