An L.E.D gives off light when current flows through it. Current can only flow through it in one direction, from the anode to the cathode. LEDs must be protected by a resistor to protect it from too much current flowing through it and then becoming damaged/.