The values or ratings of electronic components are indicated by the electronic color code that was developed in the early 1920s. It is not only seen in resistors, but also in capacitors, inductors, ...
I once worked with an engineer that often checked his resistors with a multimeter before use. I just assumed that he was just being careful (certainly more careful than I…). Then one day, he asked me ...