What is the search() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the search() method?
Rating:
The search() method searches a string on the basis of regular expression. The parameter passed in the parentheses should be a regular expression. If the string is found, the index of the string is returned, otherwise -1 is returned.
Rating:
Was this information helpful?
Other articles
- What is the alinkColor property?
- Which types of files have the extension .js?
- How to run loops?
- How to use the checked property?
- What is the status property?