When light shines on a metal, electrons can be ejected from the surface of the metal in a phenomenon known as the photoelectric effect. This process is also often referred to as photoemission, and the electrons that are ejected from the metal are called photoelectrons.
According to Einstein’s explanation of the photoelectric effect :
The energy of photon = energy needed to remove an electron + kinetic energy of the emitted electron
i.e. hν = W + E
Where,