What is the primary function of a visor?

A. To cover the nose and mouth for hygiene purposes
B. To support the chin for better posture
C. To protect the ears from loud noises
D. To shield the eyes from the sun or other bright light
Answer: 