The word 'is' found at Position:
The value argument is required, used to find the position or index of first match in the specified string.
The search() method return the index number of the specified value in the specified string. Otherwise return -1 if the specified value does not exists in the specified string.
Note: If you provide a string itself as the search value, then it will be converted into a regular expression automatically.
« Previous Tutorial Next Tutorial »
Like/Share Us on Facebook 😋