Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA