Home » JavaScript Symbol search Property

JavaScript Symbol search Property

by Online Tutorials Library

JavaScript Symbol.search Property

The JavaScript Symbol.search symbol determine the method that returns the index within a string that matches with the regular expression.

Syntax

Parameters

String.

Return value

The position of a string.

Browser Support

Chrome 32
Safari 8
Firefox 29
Opera 19

Example 1

Test it Now

Output:

7  

Example 2

Test it Now

Output:

4  

Next TopicJavaScript Symbol

You may also like