IndexOf Method is by default case sensitive . But we can make it case insensitive if we use one of the overloads: IndexOf(String, StringComparison).
Read moreWhat is indexOf in JavaScript?
indexOf() The indexOf() method, given one argument: a substring to search for, searches the entire calling string, and returns the index of the first occurrence of the specified substring .18 Şub 2022
Read more