Sail E0 Webinar
Question
Which of the following statement is correct?
Options:
A .  replace() method replaces all occurrences of one character in invoking string with another character.
B .  replace() method replaces only first occurances of a character in invoking string with another character.
C .  replace() method replaces all the characters in invoking string with another character.
D .  replace() replace() method replaces last occurrence of a character in invoking string with another character.
Answer: Option A


replace() method replaces all occurrences of one character in invoking string with another character.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers