What are frets used for?

Can you answer this question?