What happens when we use replace() on a string that contains multiple occurrences of the value we're replacing?

All occurrences are replaced The first occurrence is replaced We encounter an error in our codeNothing happens

All occurrences are replaced .