Why do different colour emerges through a prism in a different direction?

The different colour present in the white light has a different wavelength, frequency, and speed which make them emerge out through the prism in a different direction.


7