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