Can anyone assist me?
Challenge: Develop a function called indexOfIgnoreCase which takes in two strings and identifies the first instance of the second string within the first string. This function should be insensitive to letter case. For example, indexOfIgnoreCase("bit","it")
and indexOfIgnoreCase("bit","IT")
should both return 1.
I have managed to create this working solution; however, I am now facing the challenge of making it case insensitive.
var indexOfIgnoreCase=function(firstString, secondString){
return firstString.indexOf(secondString);
var result=indexOfIgnoreCase("bit","it");
return indexOfIgnoreCase.toUpperCase();
}