How to use "GetComponent().material.color = Color.yellow;"

The code doesn’t seem to be working and I really need to know how :confused:

GetComponent().material.color = Color.yellow;