Why Do We Use Diffraction Grating?

Why Do We Use Diffraction Grating? Diffraction gratings are optical devices that are used in instruments such as spectrometers to separate polychromatic light into the underlying constituent wavelengths of which it is comprised. What is the purpose of the diffraction grating? Diffraction grating, component of optical devices consisting of a surface ruled with close, equidistant,