Please help what's wrong? The code is working fine with example tests but while checking the code it fails. Below is my code..
let arr=text.split(' ');
let counter=0;
for(let i=0;i<arr.length;i++){
if(isNaN(arr[i])){
counter++;
if(counter===3){
return true
}
}
else {
counter=0;
}
}
return false;
Wrapped in function..
Created at: 2022/04/17 10:22; Updated at: 2022/04/23 09:25