differentiate between replace and replace all ?
Answers
Answered by
0
replace can work only for a word to be replaced by other words
but replace all will replsce all the words to be replaced by other word
Answered by
0
Answer:
The difference between replace and replace method is that the replace() method replaces all the occurrences of old char with new char while replace method replaces all the occurrences of old string with the new string.
Explanatio
Similar questions