Diffraction is a phenomenon in which light bends at the edges of an object because of which light falls even in the shadow region.
Diffraction grating consists of thousands of slits through which the light splits. The diffracted light travels in different directions and forms a alternate dark and bright fringes.
In optics, a diffraction grating is an optical component with a periodic structure, which splits and diffracts light into several beams travelling in different directions.