When electric current passes through the filaments of the bulb, it starts emitting light due to the heating effect of the electric current. Most of the power consumed by the filament appears as heat, but a small part of it is in the form of light radiated.