I may have a partial solution to the problem. By the end, I just want the conclusion to be, "There are two names that begin with the letter B." I am currently not achieving this with my code below.
let count = 0;
let names = ["Bill", "Julia", "Coral", "Wendy", "Bob"];
for (let i = 0; i < names.length; i++) {
if (names[i].startsWith("B")) {
count++;
}
console.log("The letter B is at the beginning of " + count + " names");
}