Q. Which method can be used to replace a substring in a string?
β
Correct Answer: (C)
replace()
Explanation: replace substitutes a specified phrase with another.