Question: what does the speed of electromagnetic waves depend on?
Answer: The speed of electromagnetic waves will be different in air than it is in glass than it is in water. The only variables which will alter the speed of an electromagnetic wave are the properties of the medium. The speed of a wave is often calculated as the product of frequency and wavelength.