little help with javascript while loops
let friends = ["Ahmed", "Sayed", "Ali", 1, 2, "Mahmoud", "Amany"];
let index = 0;
let counter = 0;
while (friends.length > counter){
if (typeof friends[counter] === typeof 1){
continue;
}
console.log(friends[counter])
counter++;
}
// idk why the loop won't do what i want
let index = 0;
let counter = 0;
while (friends.length > counter){
if (typeof friends[counter] === typeof 1){
continue;
}
console.log(friends[counter])
counter++;
}
// idk why the loop won't do what i want

