I am trying to loop over it and add an if statement for numbers above 90, if that occurs more than 4 times in a row but I’m not sure how I can add a condition to only display if at least 4 times in a row?
So far I have:
var i = 0;
for (numbers[i];) {
if ( i > 90){
console.log("above 90 more than 4 times in a row")
}
i++;
}
Hmm good question, I guess I’d put a check next to the number and if I got one that wasn’t I put an x and continue going until I got 3 checks in a row.