Why when using the indexOf method must the condition be equal to 0 to find the words that start with "A"?
let teachers =["Alexys",
"Jon",
"Daniel",
"Francisco",
"Rafa",
"José",
"Alvaro"];
for (i = 0; i < teachers.length; i++) {
if (teachers[i].toUpperCase().indexOf("A") == 0) {
console.log(teachers[i]);
}
}