I want to be able to search for a value without having to explicitly type in the first letter using uppercase. Hence it can be recognised in lowerCase also. Any help please?
function animal(){
var animal = ["Panda", "Snake", "Lemur", "Tortoise", "Whale", "Cat", "Elephant", "Jaguar", "Panther", "Llama", "Horse", "Cheetah", "Leopard", "Anteater", "Tazmanian Devil"];
if(animal.includes(document.getElementById("animalName").value)){
console.log("That animal is available");
}
else{
console.log("That animal is not available at the moment");
}
}