Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. The method that performs the search-and-replace operation to strings for pattern matching is

  2. A.

     searchandreplace()

    B.

     add()

    C.

     edit()

    D.

     replace()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The replace() method performs a search-and-replace operation. It takes a regular expression as its first argument and a replacement string as its second argument.


Be The First To Comment