ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

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

Answer & Solution
Correct Answer: Option B
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Muhammed Mubashshir
Muhammed Mubashshir 7 years ago
Is the answer Option B or Option D?