Which characteristic is a function of melanocytes?
A. they have water-repellent properties
B. they protect the skin against UV rays
C. they provide strength to the skin
D. they act as sensory receptors