Which of the following statement is correct?
1.replace() method replaces all the characters in invoking string with another character.
2.replace() replace() method replaces last occurrence of a character in invoking string with another character.
3.replace() method replaces only first occurances of a character in invoking string with another character.
4.replace() method replaces all occurrences of one character in invoking string with another character.
Posted Date:-2021-10-25 05:40:10