let arrNames = ["Ax","ita","sy","Mael","xei","Ale", "Anna"];
function findName (arr) {
let i = 0;
let str = ''
while(i <= arr){
console.log(str = str + arr.join(', '));
}
i += 1;
return arr.length;
}
let result = (findName(arrNames));
console.log(result);
- i while(<= arr){
+ i while(<= arr.length){