JavaScript Symbol.search PropertyThe JavaScript Symbol.search symbol determine the method that returns the index within a string that matches with the regular expression. SyntaxParametersString. Return valueThe position of a string. Browser Support
Example 1Test it NowOutput: 7 Example 2Test it NowOutput: 4
Next TopicJavaScript Symbol
|