JavaScript String Methods
Both indexOf(), and lastIndexOf() return -1 if the text is not found: