Photons are the elemental units of electromagnetic spectrum. For example, white light is composed of a number of different kinds…