In this example, we search an array to find the value "RED", and then we replace the value "red" with "pink".