Function: Limit current flow and reduce voltage
Function: Emit light when current flows through them
R = (5V - 1.8V) / 0.02A = 160Ω
Function: Allow current to flow in only one direction
Function: Store and release electrical energy
Function: Control current flow by opening/closing the circuit
Function: Protect circuits from excessive current