My current code includes a for loop that determines the presence of a specific character in strings
for (var i = 0; i < length; i++) {
console.log(name[i].indexOf('z') >= 0);
}
The issue at hand is that my code halts after just one iteration. I need assistance pinpointing and resolving the problem.