Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Strings
The search() Method
search() searches a string for a value and returns the position of the first match: