The position of the first match, or -1.
Group: String
string.indexOf(text)
← All of JavaScript Reference