replace
replace()
Section titled “replace()”Category: String
Returns the input string with all occurrences of the search string replaced with the replacement string
Signature
Section titled “Signature”- Return type:
string - Parameters:
searchstring— String to search forreplacestring— Replacement string
Examples
Section titled “Examples”'Hello World'.replace('World', 'Universe')Patient.name.family.replace('Mc', 'Mac')